[wp-trac] [WordPress Trac] #62413: WordPress 6.7 Auto-sizes Reducing Image Sizes
WordPress Trac
noreply at wordpress.org
Fri Nov 15 18:04:24 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: major | Resolution:
Keywords: has-testing-info has-patch has- | Focuses:
unit-tests | performance
-------------------------------------------------+-------------------------
Comment (by flixos90):
This is a duplicate of #62345 which provides additional context for the
problem.
Per what is outlined in that ticket, it's worth clarifying that this is
not a Chromium bug. The HTML specification itself outlines in
https://html.spec.whatwg.org/multipage/rendering.html#img-contain-size the
CSS rules that are provided by the user agent stylesheet, so putting
`width: content-fit` on those images violates the spec, so it would be an
error in WordPress or the theme that uses it.
It's worth checking how widely this problem comes up, if we're able to
gather any metrics on this, and then deciding on the next steps. But a
revert of the entire feature should only be considered if it's widespread
and no reasonable alternatives exist. Since it's not a Chromium bug, the
browser behavior in that regard won't change. On the other hand, it is
still unclear to me why `width: fit-content` is needed.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62413#comment:26>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list