[wp-trac] [WordPress Trac] #50909: WordPress 5.5 update adds height and width attributes to images

WordPress Trac noreply at wordpress.org
Wed Aug 19 17:34:20 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:                |     Focuses:
--------------------------+------------------------------

Comment (by aut0poietic):

 The (S)CSS controlling responsive images is part of Gutenberg's Image
 block's styles.

 https://github.com/WordPress/gutenberg/blob/master/packages/block-
 library/src/image/style.scss#L6

 Would it be better to add the `height: auto;` here?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50909#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list