[wp-trac] [WordPress Trac] #50909: WordPress 5.5 update adds height and width attributes to images
WordPress Trac
noreply at wordpress.org
Fri Oct 23 14:55:35 UTC 2020
#50909: WordPress 5.5 update adds height and width attributes to images
-------------------------------+------------------------------
Reporter: jeslen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 5.5
Severity: normal | Resolution:
Keywords: close 2nd-opinion | Focuses:
-------------------------------+------------------------------
Comment (by magicroundabout):
I'm experiencing this too. Adding the width and height is great. But the
default block styling REALLY needs that `height: auto` adding so that if
your images don't get squashed if your theme doesn't add the `height:
auto` for you.
{{{
wp-includes/css/dist/block-library/style.css
}}}
(and its minified equivalent) needs
{{{
.wp-block-image img {
max-width: 100%;
height: auto;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50909#comment:25>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list