mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
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.
This commit is contained in:
Notes:
github-actions[bot]
2025-06-23 11:53:52 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/80ea865b197 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5158 Reviewed-by: https://github.com/AtkinsSJ ✅ Reviewed-by: https://github.com/tcl3
@@ -0,0 +1,12 @@
|
||||
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
|
||||
Reference in New Issue
Block a user