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
Calling CSSStyleValue.parseAll() on a list-valued CSS property should…
… split its value list https://bugs.webkit.org/show_bug.cgi?id=247063 Reviewed by Antti Koivisto. Calling CSSStyleValue.parseAll() on a list-valued CSS property [1] should split its value list: - https://drafts.css-houdini.org/css-typed-om/#parse-a-cssstylevalue (Step 4) - https://drafts.css-houdini.org/css-typed-om/#subdivide-into-iterations List-valued properties now indicate their separator in CSSProperties.json so that makeprop.pl can property generate CSSProperty::listValuedPropertySeparator(), on which CSSProperty::isListValuedProperty() relies. Right now, we only make use of the fact that a property is list-valued or not. However, we will eventually need to know which separator its uses in order to implement other parts of the CSS Typed OM specification. [1] https://drafts.css-houdini.org/css-typed-om/#list-valued-properties * LayoutTests/imported/w3c/web-platform-tests/css/css-typed-om/stylevalue-objects/parseAll-expected.txt: * Source/WebCore/css/CSSProperties.json: * Source/WebCore/css/CSSProperty.h: (WebCore::CSSProperty::isListValuedProperty): * Source/WebCore/css/makeprop.pl: (addProperty): * Source/WebCore/css/typedom/CSSStyleValueFactory.cpp: (WebCore::CSSStyleValueFactory::extractCSSValue): (WebCore::CSSStyleValueFactory::parseStyleValue): (WebCore::CSSStyleValueFactory::extractCSSValues): Deleted. * Source/WebCore/css/typedom/CSSStyleValueFactory.h: Canonical link: https://commits.webkit.org/256070@main
- Loading branch information
Showing
7 changed files
with
83 additions
and
32 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
|
||
PASS CSSStyleValue.parseAll() with a valid property returns a list with a single CSSStyleValue | ||
PASS CSSStyleValue.parseAll() is not case sensitive | ||
FAIL CSSStyleValue.parseAll() with a valid list-valued property returns a list with a single CSSStyleValue assert_equals: Result must be a list with three elements expected 3 but got 1 | ||
PASS CSSStyleValue.parseAll() with a valid list-valued property returns a list with a single CSSStyleValue | ||
FAIL CSSStyleValue.parseAll() with a valid shorthand property returns a CSSStyleValue assert_equals: Result must be a list with one element expected 1 but got 4 | ||
PASS CSSStyleValue.parseAll() with a valid custom property returns a list with a single CSSStyleValue | ||
|
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