[wp-trac] [WordPress Trac] #43123: Default captions should NOT use max-width
WordPress Trac
noreply at wordpress.org
Thu Jan 18 01:35:05 UTC 2018
#43123: Default captions should NOT use max-width
--------------------------+-----------------------------
Reporter: smerriman | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.9
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
In #33981, the default caption output had the inline style changed from
width: xx to max-width: xx, "to improve compatibility with flexible
layouts."
I have written a large number of themes that includes this extremely basic
style:
{{{
.alignleft, .alignright {max-width:50%;}
}}}
This ensures floated images, regardless of whether they are with or
without a caption, never take up more than 50% of the column width,
allowing enough space for text to wrap around them regardless of the
screen size.
The change has completely broken this behavior, with the inline style
overriding the CSS.
The old output for creating captions has been around for a huge number of
years, and never had any issues with "flexible layouts" - just add a max-
width:100% in the CSS if you need to.
I would like to request this is changed back to the original behavior.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43123>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list