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-has-inner-crash.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<html class="test-wait">
<style>
.baa {
width: 100px;
height: 100px;
background: red;
}
@scope(.foo:has(> :is(.bar > .baz, .never))) {
.baa {
background: green;
}
}
</style>
<div id=dut class=foo>
<div class=baz></div>
<div class=baa></div>
</div>
<script>
document.addEventListener("TestRendered", () => {
dut.classList.add("bar");
document.documentElement.classList.remove("test-wait");
});
</script>