tor-browser

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

fixed-pos-scrolled-clip-1-ref.html (423B)


      1 <!DOCTYPE html>
      2 <html>
      3 
      4 <title>Reference for: position:fixed with scrolled clip should prerender everything and correctly move the clip</title>
      5 
      6 <style>
      7 
      8 body {
      9  margin: 0;
     10  height: 4000px;
     11 }
     12 
     13 .greenSquare {
     14  position: absolute;
     15  top: 300px;
     16  left: 100px;
     17  width: 200px;
     18  height: 200px;
     19  background: lime;
     20 }
     21 
     22 </style>
     23 
     24 <div class="greenSquare"></div>
     25 
     26 <script>
     27 
     28 document.documentElement.scrollTop = 200;
     29 
     30 </script>