[wp-trac] [WordPress Trac] #62413: WordPress 6.7 Lazy Load Issue Reducing Image Sizes
WordPress Trac
noreply at wordpress.org
Fri Nov 15 01:05:33 UTC 2024
#62413: WordPress 6.7 Lazy Load Issue Reducing Image Sizes
-------------------------------------------------+-------------------------
Reporter: dooperweb | Owner: joemcgill
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 6.7.1
Component: General | Version:
Severity: major | Resolution:
Keywords: reporter-feedback has-testing-info | Focuses:
needs-patch | performance
-------------------------------------------------+-------------------------
Changes (by azaozz):
* keywords: reporter-feedback has-testing-info => reporter-feedback has-
testing-info needs-patch
Comment:
This seems related to #62345. Can reproduce it with images that have
`sizes=auto` and also have `width: fit-content;` CSS applied to them.
Seems to happen consistently in Chromium based browsers, works fine in
Firefox.
Removing either `auto` from the `sizes` attribute, or `width: fit-
content;` fixes it. This sounds like a browser bug, and hopefully will be
fixed upstream.
Seems a good fix for now may be to have a filter that plugins and themes
can use to toggle adding of `auto` to the `sizes` attribute. The question
is whether `auto` should be present by default (as now) or let it be added
by plugins and themes when they know there's no `fit-content` on the
images. That would probably depend on how common it is for images to have
`width: fit-content;`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62413#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list