Enable css-nesting WPT tests (#36246)

So that we can see the improvement when enabling the feature.

Testing: This PR enables tests
This is part of #36245

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau 2025-03-31 21:07:27 +02:00 committed by GitHub
parent 7c691b6d59
commit 77525cef84
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
25 changed files with 217 additions and 1 deletions

View file

@ -68,7 +68,7 @@ skip: true
[css-multicol]
skip: true
[css-nesting]
skip: true
skip: false
[css-overscroll-behavior]
skip: true
[css-page]

View file

@ -0,0 +1,2 @@
[conditional-properties.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[conditional-rules.html]
expected: FAIL

View file

@ -0,0 +1,39 @@
[cssom.html]
[CSSStyleRule is a CSSGroupingRule]
expected: FAIL
[Simple CSSOM manipulation of subrules]
expected: FAIL
[Simple CSSOM manipulation of subrules 1]
expected: FAIL
[Simple CSSOM manipulation of subrules 2]
expected: FAIL
[Simple CSSOM manipulation of subrules 3]
expected: FAIL
[Simple CSSOM manipulation of subrules 4]
expected: FAIL
[Simple CSSOM manipulation of subrules 5]
expected: FAIL
[Simple CSSOM manipulation of subrules 6]
expected: FAIL
[Simple CSSOM manipulation of subrules 7]
expected: FAIL
[Simple CSSOM manipulation of subrules 8]
expected: FAIL
[Simple CSSOM manipulation of subrules 9]
expected: FAIL
[Mutating the selectorText of outer rule invalidates inner rules]
expected: FAIL
[Manipulation of nested declarations through CSSOM]
expected: FAIL

View file

@ -0,0 +1,2 @@
[has-nesting.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[host-nesting-003.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[host-nesting-005.html]
expected: FAIL

View file

@ -0,0 +1,2 @@
[implicit-nesting.html]
expected: FAIL

View file

@ -0,0 +1,6 @@
[invalid-inner-rules.html]
[Simple CSSOM manipulation of subrules]
expected: FAIL
[Simple CSSOM manipulation of subrules 1]
expected: FAIL

View file

@ -0,0 +1,3 @@
[invalidation-001.html]
[CSS Selectors nested invalidation on changed parent]
expected: FAIL

View file

@ -0,0 +1,3 @@
[invalidation-002.html]
[CSS Selectors nested invalidation on changed child]
expected: FAIL

View file

@ -0,0 +1,3 @@
[invalidation-003.html]
[CSS Selectors nested invalidation with :has()]
expected: FAIL

View file

@ -0,0 +1,3 @@
[invalidation-004.html]
[CSS Selectors nested invalidation through @media by selectorText]
expected: FAIL

View file

@ -0,0 +1,6 @@
[nested-declarations-cssom-whitespace.html]
[Empty CSSNestedDeclarations do not affect outer serialization]
expected: FAIL
[Empty CSSNestedDeclarations do not affect outer serialization (nested grouping rule)]
expected: FAIL

View file

@ -0,0 +1,36 @@
[nested-declarations-cssom.html]
[Trailing declarations]
expected: FAIL
[Mixed declarations]
expected: FAIL
[CSSNestedDeclarations.style]
expected: FAIL
[Nested group rule]
expected: FAIL
[Nested @scope rule]
expected: FAIL
[Inner rule starting with an ident]
expected: FAIL
[Inserting a CSSNestedDeclaration rule into style rule]
expected: FAIL
[Inserting a CSSNestedDeclaration rule into nested group rule]
expected: FAIL
[Attempting to insert a CSSNestedDeclaration rule into top-level @media rule]
expected: FAIL
[Attempting to insert a CSSNestedDeclaration rule into a stylesheet]
expected: FAIL
[Attempting to insert a CSSNestedDeclaration rule, empty block]
expected: FAIL
[Attempting to insert a CSSNestedDeclaration rule, all invalid declarations]
expected: FAIL

View file

@ -0,0 +1,18 @@
[nested-declarations-matching.html]
[Nested declarations rule has same specificity as outer selector]
expected: FAIL
[Nested declarations rule has top-level specificity behavior]
expected: FAIL
[Bare declartaion in nested grouping rule can match pseudo-element]
expected: FAIL
[Nested @scope rules behave like :where(:scope)]
expected: FAIL
[Nested @scope rules behave like :where(:scope) (trailing)]
expected: FAIL
[Nested declarations rule responds to parent selector text change]
expected: FAIL

View file

@ -0,0 +1,3 @@
[nested-rule-cssom-invalidation.html]
[Nested rule responds to parent selector text change]
expected: FAIL

View file

@ -0,0 +1,2 @@
[nesting-basic.html]
expected: FAIL

View file

@ -0,0 +1,3 @@
[nesting-layer.html]
[@layer can be nested]
expected: FAIL

View file

@ -0,0 +1,2 @@
[parsing.html]
expected: ERROR

View file

@ -0,0 +1,45 @@
[serialize-group-rules-with-decls.html]
[Declarations are serialized on one line, rules on two.]
expected: FAIL
[Mixed declarations/rules are on two lines.]
expected: FAIL
[Implicit rule is serialized]
expected: FAIL
[Implicit rule not removed]
expected: FAIL
[Implicit + empty hover rule]
expected: FAIL
[Implicit like rule not in first position]
expected: FAIL
[Two implicit-like rules]
expected: FAIL
[Implicit like rule after decls]
expected: FAIL
[Implicit like rule after decls, missing closing braces]
expected: FAIL
[Implicit like rule with other selectors]
expected: FAIL
[Implicit-like rule in style rule]
expected: FAIL
[Empty conditional rule]
expected: FAIL
[Empty style rule]
expected: FAIL
[Empty conditional inside style rule]
expected: FAIL
[Empty style inside conditional]
expected: FAIL

View file

@ -0,0 +1,21 @@
[set-selector-text.html]
[Outer selectorText text mutation with inner style rule]
expected: FAIL
[Outer selectorText text mutation with inner @media rule]
expected: FAIL
[Outer selectorText text mutation with inner @supports rule]
expected: FAIL
[Outer selectorText text mutation with inner @layer rule]
expected: FAIL
[Outer selectorText text mutation with inner @container rule]
expected: FAIL
[Outer selectorText text mutation with inner @scope rule]
expected: FAIL
[Outer selectorText text mutation with inner nested decl. rule]
expected: FAIL

View file

@ -0,0 +1,2 @@
[supports-rule.html]
expected: FAIL

View file

@ -0,0 +1,6 @@
[top-level-is-scope.html]
[& as direct ancestor]
expected: FAIL
[& matches scoped element only, not everything]
expected: FAIL

View file

@ -0,0 +1,3 @@
[top-level-parent-pseudo-specificity.html]
[CSS Nesting: Specificity of top-level '&']
expected: FAIL