blob: b1d12ce82a7c05fba3c1b50f039e8a8505f25e3f [file] [log] [blame]
<style>
*:has(> .parent-border) {
border: 2px red solid;
}
</style>
<div>
<p>This div will have nothing</p>
</div>
<div>
<ul class="parent-border">
<li>This list will have a border because of :has.
</ul>
</div>