LibWeb/CSS: Parse layer in @import rules

This commit is contained in:
Sam Atkins
2025-12-04 14:15:07 +00:00
parent fb8575a57e
commit eb679e5726
Notes: github-actions[bot] 2025-12-08 13:32:20 +00:00
4 changed files with 51 additions and 11 deletions

View File

@@ -2,8 +2,7 @@ Harness status: OK
Found 22 tests
20 Pass
2 Fail
22 Pass
Pass @import url("nonexist.css") supports(); should be an invalid import rule due to an invalid supports() declaration
Pass @import url("nonexist.css") supports(foo: bar); should be an invalid import rule due to an invalid supports() declaration
Pass @import url("nonexist.css") supports(display:block); should be a valid supports() import rule
@@ -15,8 +14,8 @@ Pass @import url("nonexist.css") supports((display: flex) or (foo: bar)); should
Pass @import url("nonexist.css") supports(display: block !important); should be a valid supports() import rule
Pass @import url("nonexist.css") layer supports(); should be an invalid import rule due to an invalid supports() declaration
Pass @import url("nonexist.css") layer supports(foo: bar); should be an invalid import rule due to an invalid supports() declaration
Fail @import url("nonexist.css") layer(A) supports((display: flex) or (foo: bar)); should be a valid supports() import rule
Fail @import url("nonexist.css") layer(A.B) supports((display: flex) and (foo: bar)); should be a valid supports() import rule
Pass @import url("nonexist.css") layer(A) supports((display: flex) or (foo: bar)); should be a valid supports() import rule
Pass @import url("nonexist.css") layer(A.B) supports((display: flex) and (foo: bar)); should be a valid supports() import rule
Pass @import url("nonexist.css") supports(selector(a)); should be a valid supports() import rule
Pass @import url("nonexist.css") supports(selector(p a)); should be a valid supports() import rule
Pass @import url("nonexist.css") supports(selector(p > a)); should be a valid supports() import rule