blob: fe51186f59f88bdfcf5ed8641938b7491024bfda [file] [log] [blame]
<!doctype html>
<meta charset="utf-8">
<title>:has(...):host internal descendent</title>
<link rel="help" href="https://drafts.csswg.org/css-scoping/#host-selector">
<link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div id="host">
<template shadowrootmode="open">
<style>
div {
width: 100px;
height: 100px;
background-color: red;
}
:has(section):host div {
background-color: green;
}
</style>
<span><div></div></span>
<section></section>
</template>
</div>