tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

has-slotted-functional-002.tentative.html (607B)


      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>