tor-browser

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

stylesheet-replacedata-dynamic.html (631B)


      1 <!doctype html>
      2 <title>(Test #1) CSS Test: Dynamic changes to the stylesheet contents using replaceData are reflected</title>
      3 <link rel="match" href="stylesheet-replacedata-dynamic-ref.html">
      4 <link rel="author" title="Emilio Cobos Álvarez" href="mailto:emilio@mozilla.com">
      5 <link rel="author" title="Cheng You Bai" href="mailto:cyb.ai.815@gmail.com">
      6 <link rel="help" href="https://dom.spec.whatwg.org/#dom-characterdata-replacedata">
      7 <style>.fail { color: green }</style>
      8 <div class="pass">Should be green</div>
      9 <script>
     10  document.body.offsetTop;
     11  document.querySelector('style').firstChild.replaceData(1, 4, "pass");
     12 </script>