tor-browser

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

fixed-positioned-001-ref.html (795B)


      1 <!DOCTYPE html>
      2 <html class="reftest-wait">
      3 <head>
      4 <meta charset="utf-8"/>
      5 <title>Fixed positioned (reference)</title>
      6 <style>
      7  body { overflow: hidden; }
      8 </style>
      9 <body>
     10  <div style="position: absolute; left: 100px; top: 200px;
     11              height: 3000px; width: 3000px;">
     12    <math>
     13      <mrow>
     14        <mspace width="100px" height="300px" style="background: green"/>
     15        <mspace width="100px" height="300px" style="background: green"/>
     16        <mspace width="100px" height="300px" style="background: green"/>
     17      </mrow>
     18    </math>
     19    <p>Test passes if you see a green square and no red.</p>
     20  </div>
     21  <script>
     22    requestAnimationFrame(() => {
     23      window.scrollTo(50, 100);
     24      document.documentElement.classList.remove("reftest-wait");
     25    });
     26  </script>
     27 </body>
     28 </html>