tor-browser

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

has-slotted-flattened-004.html (639B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>:has-slotted negative test: empty nested slot</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"><template shadowrootmode="open"><div id="host"><template shadowrootmode="open"><style>
      8  slot {
      9      display: block;
     10      width: 100px;
     11      height: 100px;
     12      background-color: green;
     13  }
     14  :has-slotted {
     15      background-color: red;
     16  }
     17 </style><slot></slot></template><slot></slot></div></template></div>