Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
            
- /css/css-cascade/scope-featureless.html - WPT Dashboard Interop Dashboard
 
 
<!DOCTYPE html>
<title>:scope Selector Cannot be Featureless Outside of @scope</title>
<link rel="match" href="scope-featureless-ref.html">
<style>
:root {
  background: white;
  color: white;
}
:scope {
  --font-color: black;
}
#dut {
  color: var(--font-color);
}
</style>
<div id="dut">Test</div>