You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
https://bugs.webkit.org/show_bug.cgi?id=254388
rdar://107167273
Reviewed by NOBODY (OOPS!).
Resolution ranges are currently not restricted by the specification, so we should accept them.
Corresponding WPT commit with more details: web-platform-tests/wpt@6dd9e79
The two unskipped tests are for rendering, negative resolutions are considered invalid for rendering purposes, so they display as blank.
However, they are still parsed, which means the declaration stays valid, which wasn't the case before.
Also rebaseline parsing tests.
It is possible that the spec changes again in the future: w3c/csswg-drafts#8532
* LayoutTests/TestExpectations:
* LayoutTests/imported/w3c/web-platform-tests/css/css-images/image-set/image-set-parsing-expected.txt:
* Source/WebCore/css/parser/CSSPropertyParserHelpers.cpp:
(WebCore::CSSPropertyParserHelpers::consumeImageSetOption):
PASS e.style['background-image'] = "-webkit-image-set(url(\"example.png\") calc(2x - 1))" should not set the property value
70
70
PASS e.style['background-image'] = "image-set(url(\"example.png\") calc(1 + 4dpi))" should not set the property value
71
71
PASS e.style['background-image'] = "-webkit-image-set(url(\"example.png\") calc(1 + 4dpi))" should not set the property value
72
-
FAIL e.style['background-image'] = "image-set(url(\"example.png\") 0x)" should set the property value assert_not_equals: property should be set got disallowed value ""
73
-
FAIL e.style['background-image'] = "-webkit-image-set(url(\"example.png\") 0x)" should set the property value assert_not_equals: property should be set got disallowed value ""
74
-
FAIL e.style['background-image'] = "image-set(url(\"example.png\") 0dppx)" should set the property value assert_not_equals: property should be set got disallowed value ""
75
-
FAIL e.style['background-image'] = "-webkit-image-set(url(\"example.png\") 0dppx)" should set the property value assert_not_equals: property should be set got disallowed value ""
76
-
FAIL e.style['background-image'] = "image-set(url(\"example.png\") 0dpi)" should set the property value assert_not_equals: property should be set got disallowed value ""
77
-
FAIL e.style['background-image'] = "-webkit-image-set(url(\"example.png\") 0dpi)" should set the property value assert_not_equals: property should be set got disallowed value ""
78
-
FAIL e.style['background-image'] = "image-set(url(\"example.png\") 0dpcm)" should set the property value assert_not_equals: property should be set got disallowed value ""
79
-
FAIL e.style['background-image'] = "-webkit-image-set(url(\"example.png\") 0dpcm)" should set the property value assert_not_equals: property should be set got disallowed value ""
80
-
FAIL e.style['background-image'] = "image-set(url(\"example.png\") -1x)" should set the property value assert_not_equals: property should be set got disallowed value ""
81
-
FAIL e.style['background-image'] = "-webkit-image-set(url(\"example.png\") -1x)" should set the property value assert_not_equals: property should be set got disallowed value ""
82
-
FAIL e.style['background-image'] = "image-set(url(\"example.png\") -3dppx)" should set the property value assert_not_equals: property should be set got disallowed value ""
83
-
FAIL e.style['background-image'] = "-webkit-image-set(url(\"example.png\") -3dppx)" should set the property value assert_not_equals: property should be set got disallowed value ""
84
-
FAIL e.style['background-image'] = "image-set(url(\"example.png\") -96dpi)" should set the property value assert_not_equals: property should be set got disallowed value ""
85
-
FAIL e.style['background-image'] = "-webkit-image-set(url(\"example.png\") -96dpi)" should set the property value assert_not_equals: property should be set got disallowed value ""
86
-
FAIL e.style['background-image'] = "image-set(url(\"example.png\") -113dpcm)" should set the property value assert_not_equals: property should be set got disallowed value ""
87
-
FAIL e.style['background-image'] = "-webkit-image-set(url(\"example.png\") -113dpcm)" should set the property value assert_not_equals: property should be set got disallowed value ""
72
+
PASS e.style['background-image'] = "image-set(url(\"example.png\") 0x)" should set the property value
73
+
PASS e.style['background-image'] = "-webkit-image-set(url(\"example.png\") 0x)" should set the property value
74
+
PASS e.style['background-image'] = "image-set(url(\"example.png\") 0dppx)" should set the property value
75
+
PASS e.style['background-image'] = "-webkit-image-set(url(\"example.png\") 0dppx)" should set the property value
76
+
PASS e.style['background-image'] = "image-set(url(\"example.png\") 0dpi)" should set the property value
77
+
PASS e.style['background-image'] = "-webkit-image-set(url(\"example.png\") 0dpi)" should set the property value
78
+
PASS e.style['background-image'] = "image-set(url(\"example.png\") 0dpcm)" should set the property value
79
+
PASS e.style['background-image'] = "-webkit-image-set(url(\"example.png\") 0dpcm)" should set the property value
80
+
PASS e.style['background-image'] = "image-set(url(\"example.png\") -1x)" should set the property value
81
+
PASS e.style['background-image'] = "-webkit-image-set(url(\"example.png\") -1x)" should set the property value
82
+
PASS e.style['background-image'] = "image-set(url(\"example.png\") -3dppx)" should set the property value
83
+
PASS e.style['background-image'] = "-webkit-image-set(url(\"example.png\") -3dppx)" should set the property value
84
+
PASS e.style['background-image'] = "image-set(url(\"example.png\") -96dpi)" should set the property value
85
+
PASS e.style['background-image'] = "-webkit-image-set(url(\"example.png\") -96dpi)" should set the property value
86
+
PASS e.style['background-image'] = "image-set(url(\"example.png\") -113dpcm)" should set the property value
87
+
PASS e.style['background-image'] = "-webkit-image-set(url(\"example.png\") -113dpcm)" should set the property value
88
88
PASS e.style['background-image'] = "image-set(linear-gradient(black, white) 1x)" should set the property value
89
89
PASS e.style['background-image'] = "-webkit-image-set(linear-gradient(black, white) 1x)" should set the property value
90
90
PASS e.style['background-image'] = "image-set(repeating-linear-gradient(red, blue 25%) 1x)" should set the property value
0 commit comments