Files
ladybird/Tests/LibWeb/Text/expected/wpt-import/css/cssom/CSSGroupingRule-insertRule.txt
Callum Law 80ea865b19 LibWeb: Use correct error for invalid rule in nested insertRule
When we try to insert a disallowed (non-nested) statement into a
CSSGroupingRule we should throw a `HierarchyRequestError` as it being
disallowed is a "constraint specified by CSS". Previously we would rely
on `Parser::is_valid_in_the_current_context` and throw a Syntax error.

There are more constraints to be implemented.
2025-06-23 12:52:40 +01:00

12 lines
219 B
Plaintext

Harness status: OK
Found 7 tests
7 Pass
Pass index before first
Pass index after final
Pass index not specified
Pass index exceeds length
Pass CSS parsing error
Pass constraint violation
Pass disallowed namespace rule