tor-browser

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

1439809-1.html (902B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3 <head>
      4 <style>
      5  div {
      6    width: 200px;
      7    height: 200px;
      8  }
      9  #one {
     10    background-color: green;
     11    visibility: hidden;
     12  }
     13  #two {
     14    background-color: red;
     15  }
     16  #three {
     17    position: absolute;
     18    width: 500px;
     19    height: 500px;
     20    top: 0px;
     21    background-color: rgba(0,0,255,0.2);
     22  }
     23 </style>
     24 </head>
     25 <body>
     26  <div id="one"></div>
     27  <div id="two"></div>
     28  <div id="three"></div>
     29  <script>
     30    function doTest2() {
     31      document.getElementById("three").style.backgroundColor = "rgba(255,0,255,0.2)";
     32      document.documentElement.removeAttribute('class');
     33    }
     34    function doTest() {
     35      document.getElementById("one").style.visibility = "visible";
     36      window.requestAnimationFrame(function() { window.requestAnimationFrame(doTest2); });
     37    }
     38    window.addEventListener("MozReftestInvalidate", doTest);
     39  </script>
     40 </body>
     41 </html>