tor-browser

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

host-context-specificity-002.html (676B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <title>CSS Test: :host-context() is accounted for during specificity computation</title>
      4 <link rel="help" href="https://drafts.csswg.org/css-scoping/#host-selector">
      5 <link rel="match" href="reference/green-box.html">
      6 <p>Test passes if you see a single 100px by 100px green box below.</p>
      7 <div id="host"></div>
      8 <script>
      9  host.attachShadow({ mode: 'open' }).innerHTML = `
     10    <style>
     11      .foo span {
     12        display: block;
     13        width: 100px;
     14        height: 100px;
     15        background: red;
     16      }
     17      :host-context(*) span {
     18        background: green;
     19      }
     20    </style>
     21    <div class="foo"><span></span></div>
     22  `;
     23 </script>