[wp-trac] [WordPress Trac] #28475: Resizing Images in WYSIWYG should use inline css instead of html width and height
WordPress Trac
noreply at wordpress.org
Sun Jun 8 21:12:40 UTC 2014
#28475: Resizing Images in WYSIWYG should use inline css instead of html width and
height
---------------------------+------------------------------
Reporter: DoodleDogCody | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 3.9.1
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+------------------------------
Comment (by camdensegal):
This would cause issues with responsive themes. The standard responsive
image css:
{{{
img {
max-width: 100%;
height: auto;
}
}}}
Would break as the height value would be overridden by the inline css and
lead to squished images. Themes should be able to override the width and
height values without resorting to {{{!important}}}, theme developers just
need to be conscious of users setting image sizes and only override when
necessary.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28475#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list