tor-browser

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

change-src-while-not-displayed.html (742B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <link rel="author" title="Morten Stenshorne" href="mailto:mstensho@chromium.org">
      4 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1240261">
      5 <link rel="match" href="change-src-while-not-displayed-ref.html">
      6 <embed id="embed" style="display:block;" src="data:text/html,FAIL">
      7 <script>
      8  onload = function() {
      9    document.body.offsetTop;
     10    embed.style.display = "none";
     11    document.body.offsetTop;
     12    embed.src = "data:text/html,PASS";
     13    document.body.offsetTop;
     14    embed.style.display = "block";
     15    requestAnimationFrame(()=> {
     16      requestAnimationFrame(()=> {
     17        document.documentElement.classList.remove('reftest-wait');
     18      });
     19    });
     20  }
     21 </script>