Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parsing of list-style shorthand is incorrect
https://bugs.webkit.org/show_bug.cgi?id=237515 Reviewed by Antti Koivisto. LayoutTests/imported/w3c: * web-platform-tests/css/css-lists/parsing/list-style-computed.sub-expected.txt: * web-platform-tests/css/css-lists/parsing/list-style-valid-expected.txt: * web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-expected.txt: * web-platform-tests/css/css-pseudo/parsing/marker-supported-properties-in-animation-expected.txt: * web-platform-tests/css/cssom/shorthand-values-expected.txt: Source/WebCore: The spec at https://drafts.csswg.org/css-lists/#list-style-property says the order of the properties in the "list-style" shorthand is <'list-style-position'> || <'list-style-image'> || <'list-style-type'>. Additionally, the "none" value needs special handling such that it sets "list-style-type". * css/CSSProperties.json: * css/parser/CSSPropertyParser.cpp: (WebCore::CSSPropertyParser::parseShorthand): LayoutTests: Some non-WPT tests had the wrong assumption on the shorthand order for list-style, so we update those tests to match the spec. Additionally, the WPT test css/css-lists/list-style-type-string-004.html now passes. * fast/css/cssText-shorthand-expected.txt: * fast/css/cssText-shorthand.html: * fast/css/getComputedStyle/getComputedStyle-list-style-shorthand-expected.txt: * fast/css/getComputedStyle/getComputedStyle-list-style-shorthand.html: * platform/mac/TestExpectations: Canonical link: https://commits.webkit.org/248115@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@290884 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
15 changed files
with
116 additions
and
63 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
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
10 changes: 5 additions & 5 deletions
10
...mported/w3c/web-platform-tests/css/css-lists/parsing/list-style-computed.sub-expected.txt
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,7 @@ | ||
|
||
FAIL Property list-style value 'none' assert_equals: expected "outside none none" but got "none outside none" | ||
FAIL Property list-style value 'inside' assert_equals: expected "inside none disc" but got "disc inside none" | ||
FAIL Property list-style value 'url("https://localhost/")' assert_equals: expected "outside url(\"https://localhost/\") disc" but got "disc outside url(\"https://localhost/\")" | ||
FAIL Property list-style value 'square' assert_equals: expected "outside none square" but got "square outside none" | ||
FAIL Property list-style value 'inside url("https://localhost/") square' assert_equals: expected "inside url(\"https://localhost/\") square" but got "square inside url(\"https://localhost/\")" | ||
PASS Property list-style value 'none' | ||
PASS Property list-style value 'inside' | ||
PASS Property list-style value 'url("https://localhost/")' | ||
PASS Property list-style value 'square' | ||
PASS Property list-style value 'inside url("https://localhost/") square' | ||
|
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
Oops, something went wrong.