tor-browser

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

host-in-host-context-selector.html (540B)


      1 <!DOCTYPE html>
      2 <title>CSS Scoping: :host-context(:host)</title>
      3 <link rel="help" href="https://drafts.csswg.org/css-scoping/#host-selector">
      4 <script src="/resources/testharness.js"></script>
      5 <script src="/resources/testharnessreport.js"></script>
      6 <div id="host">
      7  <template shadowrootmode="open">
      8    <style>
      9      /* Should not match */
     10      :host-context(:host) {
     11        --x:FAIL;
     12      }
     13    </style>
     14  </template>
     15 </div>
     16 <script>
     17  test(() => {
     18    assert_equals(getComputedStyle(host).getPropertyValue('--x'), '');
     19  });
     20 </script>