[wp-trac] [WordPress Trac] #62413: WordPress 6.7 Auto-sizes Reducing Image Sizes
WordPress Trac
noreply at wordpress.org
Tue Nov 19 04:23:46 UTC 2024
#62413: WordPress 6.7 Auto-sizes Reducing Image Sizes
-------------------------------------------------+-------------------------
Reporter: dooperweb | Owner: joemcgill
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 6.7.1
Component: Media | Version: 6.7
Severity: normal | Resolution:
Keywords: has-testing-info has-patch has- | Focuses:
unit-tests fixed-major | performance
-------------------------------------------------+-------------------------
Comment (by dougwollison):
So the`contain-intrinsic-size` fix by @flixos90 seems to cause an opposite
issue, with my use case anyway; images are now stretched too tall.
It's admittedly a weird edge case; I technically have aspect-ratio:auto
explicitly set on all images (because custom properties), which causes
`height: auto` to evaluate to whatever the `contain-intrinsic-size` height
is.
https://codepen.io/dougwollison/pen/vYoPYwE
Given it's a chromium bug (https://issues.chromium.org/issues/378870236),
I'm not sure theres any other way to fix this with CSS, so personally I
find the `wp_img_tag_add_auto_sizes` solution to suffice.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62413#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list