tor-browser

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

has-slotted-functional-004.tentative.html (665B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>:has-slotted(.class)</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(.slotted-element) {
     17          background-color: green;
     18        }
     19      </style>
     20      <slot></slot>
     21    </template>
     22    <div class="slotted-element"></div>
     23 </div>