tor-browser

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

slotted-details-content.html (563B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Scoping Test: ::slotted() allows ::details-content</title>
      4 <link rel="author" title="Tim Nguyen" href="https://github.com/nt1m">
      5 <link rel="help" href="https://drafts.csswg.org/css-scoping/#slotted-pseudo">
      6 <link rel="match" href="slotted-details-content-ref.html">
      7 <div id="host">
      8  <details open>This text should be green</details>
      9 </div>
     10 <script>
     11  host.attachShadow({ mode: "open" }).innerHTML = `
     12    <style>
     13      ::slotted(*)::details-content { color: green }
     14    </style>
     15    <slot></slot>
     16  `;
     17 </script>