tor-browser

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

iframe-border-radius.html (542B)


      1 <!DOCTYPE HTML>
      2 <html class="reftest-wait">
      3 <body>
      4 <iframe src="iframe-border-radius-frame.html" id="f" style="width:500px; height:500px; border-radius:100px; border:none;"></iframe>
      5 <script>
      6 var f = document.getElementById("f");
      7 var count = 0;
      8 function doTest() {
      9  ++count;
     10  f.contentWindow.scrollTo(0, count*20);
     11  if (count == 4) {
     12    document.documentElement.removeAttribute("class");
     13  } else {
     14    setTimeout(doTest, 20);
     15  }
     16 }
     17 document.addEventListener("MozReftestInvalidate", doTest);
     18 </script>
     19 </body>
     20 </html>