[wp-trac] [WordPress Trac] #33981: Default Captions Should Use max-width
WordPress Trac
noreply at wordpress.org
Wed Sep 23 18:41:39 UTC 2015
#33981: Default Captions Should Use max-width
-------------------------------+-----------------------------
Reporter: Howdy_McGee | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.3.1
Severity: normal | Keywords:
Focuses: ui, accessibility |
-------------------------------+-----------------------------
HTML5 Captions should really be using `max-width: image-size + px` rather
than a static width. It's widely supported and more mobile friendly than
the default `width` style.
{{{
<figure id="attachment_116" style="max-width: 400px;" class="wp-caption
alignright">
<img class="wp-image-116 size-full" src="image.jpg" alt="redraw"
width="400" height="365">
<figcaption class="wp-caption-text">Phasellus nec sem in justo
pellentesque facilisis.</figcaption>
</figure>
}}}
Works just as well - [http://caniuse.com/#feat=minmaxwh Can I Use: max-
width]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33981>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list