tor-browser

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

slotted-specificity-002.html (787B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Test: slotted selectors are compared correctly for specificity</title>
      4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io">
      5 <link rel="help" href="https://drafts.csswg.org/css-scoping/#slotted-pseudo">
      6 <link rel="help" href="https://bugs.webkit.org/show_bug.cgi?id=229438">
      7 <link rel="match" href="reference/green-box.html">
      8 <p>Test passes if you see a single 100px by 100px green box below.</p>
      9 <div id="host"><div></div></div>
     10 <script>
     11  host.attachShadow({ mode: 'open' }).innerHTML = `
     12    <style>
     13      :host ::slotted(*) {
     14        width: 100px;
     15        height: 100px;
     16        background: green;
     17      }
     18      ::slotted(*) {
     19        background: red;
     20      }
     21    </style>
     22    <slot></slot>
     23  `;
     24 </script>