Status: FAIL | Duration: 46ms | Subtests: 1/2 | Open test on wpt.live | wpt.fyi
Data from commit:
a50cb89 wpt: run reference-named files which are themselves tests (#836) (2026-09-03)
| Subtest | Status | Message |
|---|---|---|
| Scope-imported rule applies within scope, above limit | FAIL | assert_equals: expected "1" but got "" |
| Scope-imported rule does not apply below limit | PASS |
/css/css-cascade/scope-import-scope-end.html
<!DOCTYPE html> <title>@import scope() with <scope-end></title> <link rel="help" href="https://drafts.csswg.org/css-cascade-6/#at-import"> <script src="/resources/testharness.js"></script> <script src="/resources/testharnessreport.js"></script> <style> @import url("resources/scope-imported.css") scope((.scope) to (.limit)); </style> <main id=main> <div class=scope> <div class=x>Inside</div> <div class=limit> <div class=x>Below limit</div> </div> </div> </main> <script> test(() => { let e = main.querySelector('.scope > .x'); assert_equals(getComputedStyle(e).getPropertyValue('--x'), '1'); }, 'Scope-imported rule applies within scope, above limit'); test(() => { let e = main.querySelector('.limit > .x'); assert_equals(getComputedStyle(e).getPropertyValue('--x'), ''); }, 'Scope-imported rule does not apply below limit'); </script>