tor-browser

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

part-after-combinator-invalidation.html (757B)


      1 <!doctype html>
      2 <meta charset="utf-8">
      3 <link rel="help" href="https://drafts.csswg.org/css-shadow-parts">
      4 <link rel="help" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1891296">
      5 <link rel="author" href="mailto:emilio@crisal.io" title="Emilio Cobos Álvarez">
      6 <link rel="author" href="https://mozilla.org" title="Mozilla">
      7 <link rel="match" href="part-after-combinator-invalidation-ref.html">
      8 <style>
      9 .inactive > ::part(content) {
     10  color: red;
     11 }
     12 </style>
     13 <div class="inactive">
     14  <div id="host">
     15    <template shadowrootmode="open">
     16      <div part="content">What color am I?</div>
     17    </template>
     18  </div>
     19 </div>
     20 <script>
     21 onload = () => {
     22  host.getBoundingClientRect();
     23  host.parentNode.className = "";
     24  host.getBoundingClientRect();
     25 };
     26 </script>