[wp-trac] [WordPress Trac] #55229: Super broad selector for images max-width on WP 5.9

WordPress Trac noreply at wordpress.org
Wed Feb 23 10:11:41 UTC 2022


#55229: Super broad selector for images max-width on WP 5.9
--------------------------+------------------------------
 Reporter:  hvianna       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  5.9.1
 Severity:  major         |  Resolution:
 Keywords:                |     Focuses:  css
--------------------------+------------------------------
Changes (by butterflymedia):

 * severity:  normal => major


Comment:

 This also broke Metafizzy's Flickity slider for me and squishing off-
 canvas images. It's a breaking change that will affect various image
 containers, such as sliders, carousels, image animations and so on.

 I had to override the CSS selector with:

 {{{
 html :where(img) {
     max-width: fit-content;
 }
 }}}

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


More information about the wp-trac mailing list