tor-browser

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

has-slotted-functional-flattened-006.tentative.html (1108B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>:has-slotted(el) + :has-slotted(el) 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                    [name] {
     13                        display: block;
     14                        width: 100px;
     15                        height: 100px;
     16                        background-color: red;
     17                    }
     18                    :has-slotted(div) + :has-slotted(div) {
     19                        background-color: green;
     20                    }
     21                </style>
     22                <slot></slot>
     23                <slot name="after"></slot>
     24            </template>
     25            <slot></slot>
     26            <slot name="after" slot="after"></slot>
     27        </div>
     28    </template>
     29    <div></div>
     30    <div slot="after"></div>
     31 </div>