tor-browser

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

helper_scroll_over_subframe_child.html (504B)


      1 <!DOCTYPE HTML>
      2 <html>
      3 <head>
      4 <script src="/tests/SimpleTest/SimpleTest.js"></script>
      5 <script src="/tests/SimpleTest/paint_listener.js"></script>
      6 <script src="apz_test_utils.js"></script>
      7 <style>
      8 body {
      9  margin: 0px;
     10 }
     11 
     12 #target {
     13  width: 100%;
     14  height: 100vh;
     15  background: blue;
     16  overflow: scroll;
     17 }
     18 </style>
     19 </head>
     20 <body>
     21 <div id="target">
     22 </div>
     23 </body>
     24 <script>
     25  window.addEventListener("wheel", () => {
     26    window.parent.postMessage("child-received-wheel-event", "*");
     27  });
     28 </script>
     29 </html>