Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html>
<link rel="author" title="David Shin" href="mailto:dshin@mozilla.com">
<meta name="assert" content="Ensure that style sharing optimizations do not interfere with :has() selector matching.">
<style>
.cousin {
width: 1em;
height: 1em;
background: purple;
}
.special.cousin.has {
background: blue;
}
</style>
<div class="sib">
<div class="cousin"></div>
</div>
<br>
<div class="sib">
<div class="cousin special"></div>
<br>
<div class="cousin special has"></div>
</div>