LibWeb/CSS: Add the env() function to @supports conditions

This was just added to the spec and doesn't yet have WPT coverage, but
it's also pretty trivial.
This commit is contained in:
Sam Atkins
2026-03-27 15:11:16 +00:00
parent 7f322da78c
commit fd46ade2a2
Notes: github-actions[bot] 2026-03-29 20:28:15 +00:00
4 changed files with 62 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ These should all be valid:
@supports selector(.simple): PASS
@supports selector(a#more > .complicated.case:nth-child(42)): PASS
@supports selector(.easy) or selector(.....nope): PASS
@supports env(preferred-text-scale): FAIL
@supports env(preferred-text-scale): PASS
These should all be invalid:
@supports (not (color: green)): PASS