has-slotted-functional-001.tentative.html (621B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>:has-slotted(*)</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="host"> 8 <template shadowrootmode="open"> 9 <style> 10 slot { 11 display: block; 12 width: 100px; 13 height: 100px; 14 background-color: red; 15 } 16 :has-slotted(*) { 17 background-color: green; 18 } 19 </style> 20 <slot></slot> 21 </template> 22 <div></div> 23 </div>