Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
REGRESSION (248115@main):
list-style
shorthand property doesn't wor…
…k with `inside none` but with `none inside` https://bugs.webkit.org/show_bug.cgi?id=243991 <rdar://98748112> Reviewed by Cameron McCormack. none can be either list-style-type or list-style-image, and longhands can be in any order. We need to distinguish them when parsing. Also, this fixes the bug where `none garbage` was valid, when it is actually invalid. * LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-computed-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-computed.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-valid-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-type-valid.html: * LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-valid-expected.txt: * LayoutTests/imported/w3c/web-platform-tests/css/css-lists/parsing/list-style-valid.html: * Source/WebCore/css/parser/CSSPropertyParser.cpp: (WebCore::CSSPropertyParser::consumeListStyleShorthand): (WebCore::CSSPropertyParser::parseShorthand): * Source/WebCore/css/parser/CSSPropertyParser.h: Canonical link: https://commits.webkit.org/254282@main
- Loading branch information
Showing
8 changed files
with
89 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,19 @@ | ||
|
||
PASS e.style['list-style'] = "none" should set the property value | ||
FAIL e.style['list-style'] = "disc outside none" should set the property value assert_equals: serialization should be canonical expected "outside" but got "outside none disc" | ||
PASS e.style['list-style'] = "inside" should set the property value | ||
FAIL e.style['list-style'] = "inside disc" should set the property value assert_equals: serialization should be canonical expected "inside" but got "inside disc" | ||
PASS e.style['list-style'] = "inside none" should set the property value | ||
PASS e.style['list-style'] = "inside none none" should set the property value | ||
PASS e.style['list-style'] = "none inside none" should set the property value | ||
PASS e.style['list-style'] = "none none inside" should set the property value | ||
PASS e.style['list-style'] = "none inside" should set the property value | ||
PASS e.style['list-style'] = "url(\"https://example.com/\")" should set the property value | ||
PASS e.style['list-style'] = "none url(\"https://example.com/\")" should set the property value | ||
FAIL e.style['list-style'] = "url(\"https://example.com/\") disc" should set the property value assert_equals: serialization should be canonical expected "url(\"https://example.com/\")" but got "url(\"https://example.com/\") disc" | ||
FAIL e.style['list-style'] = "url(\"https://example.com/\") disc outside" should set the property value assert_equals: serialization should be canonical expected "url(\"https://example.com/\")" but got "outside url(\"https://example.com/\") disc" | ||
PASS e.style['list-style'] = "square" should set the property value | ||
PASS e.style['list-style'] = "square url(\"https://example.com/\") inside" should set the property value | ||
PASS e.style['list-style'] = "square linear-gradient(red,blue) inside" should set the property value | ||
FAIL e.style['list-style'] = "disc radial-gradient(circle, #006, #00a 90%, #0000af 100%,white 100%) inside" should set the property value assert_equals: serialization should be canonical expected "inside radial-gradient(circle, rgb(0, 0, 102), rgb(0, 0, 170) 90%, rgb(0, 0, 175) 100%, white 100%)" but got "inside radial-gradient(circle, rgb(0, 0, 102), rgb(0, 0, 170) 90%, rgb(0, 0, 175) 100%, white 100%) disc" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters