tor-browser

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

has-slotted-functional-flattened-003.tentative.html (938B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>:has-slotted(...) flattened through multiple slots, 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="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: green;
     17                }
     18                :has-slotted(*) {
     19                    background-color: red;
     20                }
     21                </style>
     22                <slot></slot>
     23            </template>
     24        </div>
     25        <slot></slot>
     26    </template>
     27 </div>