Bug 225185 - image-set does not support type
Summary: image-set does not support type
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: Safari 14
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
Keywords: InRadar
Depends on:
Reported: 2021-04-29 02:13 PDT by Oliver Williams
Modified: 2021-05-06 02:14 PDT (History)
5 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Oliver Williams 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
Comment 1 Radar WebKit Bug Importer 2021-05-06 02:14:13 PDT