has-slotted-flattened-003.html (661B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>:has-slotted populated, flattened through multiple slots</title> 4 <link rel="help" href="https://github.com/w3c/csswg-drafts/pull/10586"> 5 <link rel="match" href="/css/reference/ref-filled-green-100px-square-only.html"> 6 <p>Test passes if there is a filled green square.</p> 7 <div id="ancestor"><template shadowrootmode="open"><div id="host"><template shadowrootmode="open"><style> 8 slot { 9 display: block; 10 width: 100px; 11 height: 100px; 12 background-color: red; 13 } 14 :has-slotted { 15 background-color: green; 16 } 17 </style><slot></slot></template><slot></slot></div></template><div></div></div>