tor-browser

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

has-slotted-flattened-001.html (807B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>:has-slotted flattened through multiple slots</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="ancestor">
      8    <template shadowrootmode="open">
      9        <div id="host"><template shadowrootmode="open">
     10            <style>
     11            slot {
     12                display: block;
     13                width: 100px;
     14                height: 100px;
     15                background-color: red;
     16            }
     17            :has-slotted {
     18                background-color: green;
     19            }
     20            </style>
     21            <slot></slot>
     22        </template><slot><div></div></slot></div>
     23    </template>
     24 </div>