tor-browser

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

has-slotted-functional-007.tentative.html (699B)


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