Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
setting selectorText fails when passed a selector that includes names…
…pace prefixes https://bugs.webkit.org/show_bug.cgi?id=247830 rdar://problem/102260326 Reviewed by Tim Nguyen. * LayoutTests/imported/w3c/web-platform-tests/css/cssom/CSSStyleRule-set-selectorText-namespace-expected.txt: Expect PASS. * Source/WebCore/css/CSSPageRule.cpp: (WebCore::CSSPageRule::setSelectorText): Pass the style sheet in. * Source/WebCore/css/CSSStyleRule.cpp: (WebCore::CSSStyleRule::setSelectorText): Ditto. * Source/WebCore/css/parser/CSSParser.cpp: (WebCore::CSSParser::parseSelector): Pass the style sheet along. * Source/WebCore/css/parser/CSSParser.h: Take an optional style sheet. Canonical link: https://commits.webkit.org/256599@main
- Loading branch information
1 parent
81e1905
commit da821c3
Showing
5 changed files
with
12 additions
and
10 deletions.
There are no files selected for viewing
10 changes: 5 additions & 5 deletions
10
...ted/w3c/web-platform-tests/css/cssom/CSSStyleRule-set-selectorText-namespace-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,8 +1,8 @@ | ||
SVG text | ||
|
||
FAIL CSSStyleRule: selectorText value: |.style1| isMatch: false assert_equals: expected "rgb(255, 0, 255)" but got "rgb(0, 0, 255)" | ||
FAIL CSSStyleRule: selectorText value: |svg|*.style1 | isMatch: true assert_equals: expected "svg|*.style0" but got ".style1" | ||
FAIL CSSStyleRule: selectorText value: |*|*.style1 | isMatch: true assert_equals: expected "svg|*.style0" but got ".style1" | ||
FAIL CSSStyleRule: selectorText value: | *.style1 | isMatch: false assert_equals: expected "svg|*.style0" but got ".style1" | ||
FAIL CSSStyleRule: selectorText value: |p| isMatch: false assert_equals: expected "svg|*.style0" but got ".style1" | ||
PASS CSSStyleRule: selectorText value: |.style1| isMatch: false | ||
PASS CSSStyleRule: selectorText value: |svg|*.style1 | isMatch: true | ||
PASS CSSStyleRule: selectorText value: |*|*.style1 | isMatch: true | ||
PASS CSSStyleRule: selectorText value: | *.style1 | isMatch: false | ||
PASS CSSStyleRule: selectorText value: |p| isMatch: false | ||
|
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