LibWeb: Validate nested contents when parsing declaration value

Previously we automatically assumed that contents inside functions and
blocks were valid, now we actually check them.
This commit is contained in:
Callum Law
2026-03-09 14:54:37 +13:00
committed by Sam Atkins
parent 93bd066639
commit cdc264a62e
Notes: github-actions[bot] 2026-03-26 01:12:42 +00:00
4 changed files with 89 additions and 50 deletions

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 18 tests
15 Pass
3 Fail
16 Pass
2 Fail
Pass rgb(0, 128, 0)
Pass background-color: env(test) rgba(0, 0, 0, 0)
Pass background-color: ENV(test) rgba(0, 0, 0, 0)
@@ -21,4 +21,4 @@ Pass background-color: env(test ) rgba(0, 0, 0, 0)
Pass background-color: env( test ) rgba(0, 0, 0, 0)
Pass background-color: env(test /**/, blue) rgb(0, 0, 255)
Pass background-color: env(test, {}) rgba(0, 0, 0, 0)
Fail background-color: env(test, {) rgb(0, 128, 0)
Pass background-color: env(test, {) rgb(0, 128, 0)