WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 253143
270046
Add UA Stylesheet rules for `img` with `sizes=auto`
https://bugs.webkit.org/show_bug.cgi?id=270046
Summary
Add UA Stylesheet rules for `img` with `sizes=auto`
Ahmad Saleem
Reported
2024-02-24 20:02:56 PST
Hi Team, While going through HTML Spec, I noticed that we are missing following UA stylesheet rule:
https://html.spec.whatwg.org/#images-3
img:is([sizes="auto" i], [sizes^="auto," i]) { contain: size !important; contain-intrinsic-size: 300px 150px; } ___ It seems that we have WPT tests as well:
https://wpt.fyi/results/html/rendering/replaced-elements/images/img-sizes-auto.html?label=master&label=experimental&aligned
= I think above will progress first two tests. Although every browser is failing so it might be new standard or standard behind flag. I can find this in our standard-position:
https://github.com/WebKit/standards-positions/issues/9
but it seems to be for 'lazy loaded' images. Appreciate if someone can confirm if it is safe to add or we have to do something before. Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Anne van Kesteren
Comment 1
2024-02-25 07:57:53 PST
*** This bug has been marked as a duplicate of
bug 253143
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug