tor-browser

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

shadow-dom-01.html (574B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3  <svg width="100%" height="100%" viewBox="0 0 100 100">
      4    <rect width="100" height="100" fill="red">
      5      <set attributeName="width" to="0" begin="0s" fill="freeze"/>
      6    </rect>
      7  </svg>
      8  <p></p>
      9  <script>
     10    let p = document.querySelector("p")
     11    let shadow = p.attachShadow({mode: 'open'});
     12    shadow.appendChild(document.querySelector("svg"))
     13    document.documentElement.removeAttribute("class");
     14  </script>
     15  <style>
     16    * {
     17      margin: 0;
     18    }
     19    html {
     20      background-color: lime;
     21    }
     22  </style>
     23 </html>