[wp-trac] [WordPress Trac] #23745: Twenty Thirteen: Simplify responsive images
WordPress Trac
noreply at wordpress.org
Thu Mar 14 17:28:59 UTC 2013
#23745: Twenty Thirteen: Simplify responsive images
---------------------------+------------------------------
Reporter: obenland | Owner:
Type: enhancement | Status: new
Priority: low | Milestone: Awaiting Review
Component: Bundled Theme | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch |
---------------------------+------------------------------
Comment (by lancewillett):
The main reason we can't do this is because of user-generated markup in
posts/pages. Users can change the width/height directly in their markup,
and if we force {{{height: auto;}}} on those images their modifications
won't work correctly.
That's why for height we target WP-generated class values specifically.
Also, a general selector would try to do this for all images in the site,
like those added by a plugin. A "Like" button, for example, from Jetpack.
That could lead to lots of unintended consequences.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23745#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list