LibWeb: Allow anonymous layer block rule with no declarations

This commit is contained in:
Tim Ledbetter 2025-06-17 08:01:49 +01:00 committed by Sam Atkins
commit 701fcb9e87
Notes: github-actions[bot] 2025-06-17 07:59:15 +00:00
6 changed files with 51 additions and 2 deletions

View file

@ -0,0 +1,21 @@
Harness status: OK
Found 11 tests
11 Pass
Pass @layer A; should be a valid rule
Pass @layer A, B, C; should be a valid rule
Pass @layer A.A; should be a valid rule
Pass @layer A, B.C.D, C; should be a valid rule
Pass @layer; should be an invalid rule
Pass @layer A . A; should be an invalid rule
Pass @layer {
} should be a valid rule
Pass @layer A {
} should be a valid rule
Pass @layer A.B {
} should be a valid rule
Pass @layer A . B {
} should be an invalid rule
Pass @layer A, B, C {
} should be an invalid rule