LibWeb/CSS: Parse nested declarations in insert_a_css_rule()

The spec algorithm changed at some point to support nested declarations,
but I only just noticed. The subtest regression is one we were passing
incorrectly.
This commit is contained in:
Sam Atkins 2025-04-14 15:36:42 +01:00
commit 3d1665cc80
Notes: github-actions[bot] 2025-04-23 10:40:15 +00:00
4 changed files with 40 additions and 20 deletions

View file

@ -2,17 +2,17 @@ Harness status: OK
Found 12 tests
6 Pass
6 Fail
7 Pass
5 Fail
Fail Trailing declarations
Fail Mixed declarations
Fail CSSNestedDeclarations.style
Pass Nested group rule
Pass Nested @scope rule
Fail Inner rule starting with an ident
Fail Inserting a CSSNestedDeclaration rule into style rule
Fail Inserting a CSSNestedDeclaration rule into nested group rule
Pass Attempting to insert a CSSNestedDeclaration rule into top-level @media rule
Pass Inserting a CSSNestedDeclaration rule into style rule
Pass Inserting a CSSNestedDeclaration rule into nested group rule
Fail Attempting to insert a CSSNestedDeclaration rule into top-level @media rule
Pass Attempting to insert a CSSNestedDeclaration rule into a stylesheet
Pass Attempting to insert a CSSNestedDeclaration rule, empty block
Pass Attempting to insert a CSSNestedDeclaration rule, all invalid declarations