[Webkit-unassigned] [Bug 251197] New: resolution is an optional parameter on image-set()
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jan 25 23:45:26 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=251197
Bug ID: 251197
Summary: resolution is an optional parameter on image-set()
Product: WebKit
Version: Safari Technology Preview
Hardware: Unspecified
URL: https://wpt.fyi/results/css/css-images/image-set/image
-set-no-res-rendering-2.html?label=master&label=experi
mental&product=chrome&product=firefox&product=safari&a
ligned&view=interop&q=label%3Ainterop-2023-webcompat
OS: Unspecified
Status: NEW
Keywords: BrowserCompat, WPTImpact
Severity: Normal
Priority: P2
Component: CSS
Assignee: webkit-unassigned at lists.webkit.org
Reporter: karlcow at apple.com
CC: simon.fraser at apple.com,
webkit-bug-importer at group.apple.com
Interop2023
Test is failing
https://wpt.fyi/results/css/css-images/image-set/image-set-no-res-rendering-2.html?label=master&label=experimental&product=chrome&product=firefox&product=safari&aligned&view=interop&q=label%3Ainterop-2023-webcompat
#test {
background-image: image-set(url("/images/green.png"), url("/images/green.png"));
width: 100px;
height: 100px;
}
is a valid syntax.
Safari accepts only
#test {
background-image: image-set(url("/images/green.png") 1x, url("/images/green.png") 1x);
width: 100px;
height: 100px;
}
The spec says:
https://w3c.github.io/csswg-drafts/css-images-4/#image-set-notation
A <resolution> (optional). This is used to help the UA decide which <image-set-option> to choose. If the image reference is for a raster image, it also specifies the image’s natural resolution, overriding any other source of data that might supply a natural resolution.
If not specified, it behaves as 1x for the purpose of selecting which <image-set-option> to use. It also defaults the image’s natural resolution to 1x, but if some other source of data supplies a natural resolution, that resolution must be honored instead.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230126/778bb9c5/attachment.htm>
More information about the webkit-unassigned
mailing list