has-slotted-002.html (599B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>:has-slotted negative test: no children or white space</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"><template shadowrootmode="open"> 8 <style> 9 slot { 10 display: block; 11 width: 100px; 12 height: 100px; 13 background-color: green; 14 } 15 :has-slotted { 16 background-color: red; 17 } 18 </style> 19 <slot></slot> 20 </template></div>