Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<title>Nested has shouldn't match</title>
<link rel="match" href="has-nesting-ref.html">
<style>
ul { background: green }
li:has(strong) {
display: none;
:has(> &) {
background: red;
}
}
</style>
<ul>
<li><strong>Foo</strong></li>
<li>Bar</li>
</ul>