tor-browser

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

helper_oopif_reconstruct_nested.html (1093B)


      1 <!DOCTYPE html>
      2 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      3 <script src="/tests/SimpleTest/paint_listener.js"></script>
      4 <script src="/tests/gfx/layers/apz/test/mochitest/apz_test_utils.js"></script>
      5 <script src="/tests/gfx/layers/apz/test/mochitest/apz_test_native_event_utils.js"></script>
      6 <body>
      7 <div id="container">
      8 <iframe src="helper_oopif_reconstruct_nested_child.html"></iframe>
      9 </div>
     10 
     11 <script>
     12  // Silence SimpleTest warning about missing assertions by having it wait
     13  // indefinitely. We don't need to give it an explicit finish because the
     14  // entire window this test runs in will be closed after the main browser test
     15  // finished.
     16  SimpleTest.waitForExplicitFinish();
     17 </script>
     18 
     19 <script>
     20 
     21 
     22 function toggle() {
     23  let container = document.getElementById("container");
     24  console.log(container.style.display);
     25  if (container.style.position == "sticky") {
     26    container.style.position = "fixed";
     27  } else {
     28    container.style.position = "sticky";
     29  }
     30  document.documentElement.offsetLeft;
     31 }
     32 
     33 async function doTest() {
     34  setInterval(toggle, 40);
     35 }
     36 </script>
     37 </body>