WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 225185
[Image-Set]: Support Resolution and Type as optional arguments
https://bugs.webkit.org/show_bug.cgi?id=225185
Summary
[Image-Set]: Support Resolution and Type as optional arguments
Oliver Williams
Reported
2021-04-29 02:13:55 PDT
Safari seems to not currently support the type option, which allows new image formats like webp to be used while specifying a fall-back image in a more well supported format like jpeg or png. background-image: image-set( "foo.avif" type("image/avif"), "foo.jpg" type("image/jpeg") ); The relevant part of spec is here:
https://drafts.csswg.org/css-images-4/#image-set-notation
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2021-05-06 02:14:13 PDT
<
rdar://problem/77598590
>
Karl Dubost
Comment 2
2023-01-25 23:34:17 PST
This is failing a couple of tests in
http://wpt.live/css/css-images/image-set/image-set-computed.sub.html
and has impact on Interop 2023.
Karl Dubost
Comment 3
2023-01-26 03:40:40 PST
Also:
http://wpt.live/css/css-images/image-set/image-set-type-first-match-rendering.html
http://wpt.live/css/css-images/image-set/image-set-type-rendering-2.html
http://wpt.live/css/css-images/image-set/image-set-type-rendering-3.html
http://wpt.live/css/css-images/image-set/image-set-type-rendering.html
http://wpt.live/css/css-images/image-set/image-set-type-skip-unsupported-rendering.html
Ryan Reno
Comment 4
2023-02-23 15:20:27 PST
Resolution is also an optional parameter. As of right now we require resolution like the -webkit-image-set function did.
Ryan Reno
Comment 5
2023-02-23 15:21:15 PST
***
Bug 251197
has been marked as a duplicate of this bug. ***
Ryan Reno
Comment 6
2023-02-23 15:38:32 PST
Pull request:
https://github.com/WebKit/WebKit/pull/10623
EWS
Comment 7
2023-02-24 09:20:48 PST
Committed
260796@main
(e3554c53fff0): <
https://commits.webkit.org/260796@main
> Reviewed commits have been landed. Closing PR #10623 and removing active labels.
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