tor-browser

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

has-slotted-functional-003.tentative.html (674B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>:has-slotted(...) negative test: no children, but whitespace present</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: green;
     15        }
     16        :has-slotted(*) {
     17            background-color: red;
     18        }
     19        </style>
     20        <slot></slot>
     21    </template>
     22 </div>