tor-browser

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

file_bug1566783.html (705B)


      1 <!doctype html>
      2 <style>
      3 .spacer { height: 200vh; }
      4 </style>
      5 <script>
      6  function loadFailed() {
      7    parent.ok(false, "Image load should not fail");
      8  }
      9 </script>
     10 <div class="spacer"></div>
     11 <img id="fast" src="file_SlowTallImage.sjs?fast" onerror="loadFailed()">
     12 <div class="spacer"></div>
     13 <img id="slow" src="file_SlowTallImage.sjs?slow" onerror="loadFailed()">
     14 <div class="spacer"></div>
     15 <script>
     16 onload = function() {
     17  setTimeout(function() {
     18    let rect = document.getElementById("slow").getBoundingClientRect();
     19    parent.is(rect.height, 1000, "#slow should take space");
     20    parent.is(rect.top, 0, "#slow should be at the top of the viewport");
     21    parent.SimpleTest.finish();
     22  }, 0);
     23 }
     24 </script>