tor-browser

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

has-slotted-functional-flattened-001.tentative.html (888B)


      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">
     10            <template shadowrootmode="open">
     11              <style>
     12                slot {
     13                  display: block;
     14                  width: 100px;
     15                  height: 100px;
     16                  background-color: red;
     17                }
     18                :has-slotted(*) {
     19                  background-color: green;
     20                }
     21              </style>
     22              <slot></slot>
     23            </template>
     24            <slot></slot>
     25        </div>
     26    </template>
     27    <div></div>
     28 </div>