LibWeb/CSS: Allow descriptors to be shorthands

I was wrong when I added those notes before about this being impossible,
it's *very* possible, for example with the `@page margin` descriptor.
However, until we have a large number of these shorthands and not just a
single example, we can get away with hard-coding support for it.
This commit is contained in:
Sam Atkins
2025-05-13 13:54:43 +01:00
parent 1aa5631610
commit d8c6b872a3
Notes: github-actions[bot] 2025-05-15 08:54:36 +00:00
5 changed files with 138 additions and 34 deletions

View File

@@ -2,9 +2,8 @@ Harness status: OK
Found 4 tests
3 Pass
1 Fail
4 Pass
Pass There should be 3 @page rules.
Pass Rule #0
Pass Rule #1
Fail Rule #2
Pass Rule #2

View File

@@ -2,6 +2,6 @@ Harness status: OK
Found 2 tests
2 Fail
Fail Add declarations
Fail Remove declarations
2 Pass
Pass Add declarations
Pass Remove declarations