mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Throw error on insertRule with disallowed @namespace rule
Resolves a FIXME in `CSSRuleList::insert_a_css_rule`. Gets us a bit closer to passing https://wpt.live/css/cssom/at-namespace.html but that requires more work around parsing of selectors with namespaces (namely disallowing use of undeclared selectors), which I have added a FIXME for.
This commit is contained in:
Notes:
github-actions[bot]
2025-06-09 10:57:43 +00:00
Author: https://github.com/Calme1709 Commit: https://github.com/LadybirdBrowser/ladybird/commit/f53bec3a67e Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5037 Reviewed-by: https://github.com/AtkinsSJ ✅
2
Tests/LibWeb/Text/expected/css/namespace-rules.txt
Normal file
2
Tests/LibWeb/Text/expected/css/namespace-rules.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Can insert namespace rule into sheet with only @namespace and @import rules: PASS
|
||||
Cannot insert namespace rule into sheet with existing rules: PASS
|
||||
Reference in New Issue
Block a user