LibWeb/CSS: Assign layers to @import statements

Specifically, we create and assign a layer if its import conditions
currently apply.

With this change, every case in the `layer-import.html` test actually
functions correctly, apart from our lack of proper `load` event
support. (Tested by hacking in a 100ms wait after the `await Promise()`
statement.)
This commit is contained in:
Sam Atkins
2025-12-04 14:34:28 +00:00
parent fbcaa8edde
commit c19139f1c7
Notes: github-actions[bot] 2025-12-08 13:31:59 +00:00
5 changed files with 67 additions and 11 deletions

View File

@@ -2,8 +2,8 @@ Harness status: OK
Found 24 tests
8 Pass
16 Fail
10 Pass
14 Fail
Fail A1 Layer rules with import
Pass A2 Layer rules with import
Fail A3 Layer rules with import
@@ -17,7 +17,7 @@ Fail C2 Named imports
Pass C3 Named imports
Pass C4 Named imports
Pass C5 Named imports
Fail C6 Named imports
Pass C6 Named imports
Fail C7 Named imports
Fail C8 Named imports
Fail C9 Named imports
@@ -27,4 +27,4 @@ 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
Pass E1 Named imports establish layer even with network errors