Tests: Import some @import layer tests

This commit is contained in:
Sam Atkins
2025-12-02 12:36:11 +00:00
parent 2379f6735a
commit fb8575a57e
Notes: github-actions[bot] 2025-12-08 13:32:26 +00:00
4 changed files with 421 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
Harness status: OK
Found 24 tests
8 Pass
16 Fail
Fail A1 Layer rules with import
Pass A2 Layer rules with import
Fail A3 Layer rules with import
Fail A4 Layer rules with import
Pass B1 Anonymous imports
Fail B2 Anonymous imports
Pass B3 Anonymous imports
Fail B4 Anonymous imports
Pass C1 Named imports
Fail C2 Named imports
Pass C3 Named imports
Pass C4 Named imports
Pass C5 Named imports
Fail C6 Named imports
Fail C7 Named imports
Fail C8 Named imports
Fail C9 Named imports
Fail D1 Layer statement with imports
Fail D2 Layer statement with imports
Fail D3 Layer statement with imports
Fail D4 Layer statement with imports
Fail D5 Layer statement with imports
Pass D6 Layer statement with imports
Fail E1 Named imports establish layer even with network errors

View File

@@ -0,0 +1,18 @@
Harness status: OK
Found 13 tests
13 Fail
Fail @import url("nonexist.css") layer; should be a valid layered import rule
Fail @import url("nonexist.css") layer(A); should be a valid layered import rule
Fail @import url("nonexist.css") layer(A.B); should be a valid layered import rule
Fail @import url(nonexist.css) layer; should be a valid layered import rule
Fail @import url(nonexist.css) layer(A); should be a valid layered import rule
Fail @import url(nonexist.css) layer(A.B); should be a valid layered import rule
Fail @import "nonexist.css" layer; should be a valid layered import rule
Fail @import "nonexist.css" layer(A); should be a valid layered import rule
Fail @import "nonexist.css" layer(A.B); should be a valid layered import rule
Fail @import url("nonexist.css") layer(); should still be a valid import rule with an invalid layer declaration
Fail @import url("nonexist.css") layer(A B); should still be a valid import rule with an invalid layer declaration
Fail @import url("nonexist.css") layer(A . B); should still be a valid import rule with an invalid layer declaration
Fail @import url("nonexist.css") layer(A, B, C); should still be a valid import rule with an invalid layer declaration