trisquel-icecat/icecat/testing/web-platform/tests/css/css-scoping/host-multiple-004.html
2025-10-06 02:35:48 -06:00

23 lines
559 B
HTML

<!doctype html>
<meta charset="utf-8">
<title>:host</title>
<link rel="help" href="https://drafts.csswg.org/selectors/#featureless">
<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>
</div>
<script>
host.attachShadow({mode: "open"}).innerHTML = `
<style>
:host {
width: 100px;
height: 100px;
background-color: red;
}
:not(div, :not(:host)) {
background-color: green;
}
</style>
`;
</script>