tor-browser

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

position-sticky-scrolled-clip-2-ref.html (488B)


      1 <!DOCTYPE html>
      2 <html>
      3 
      4 <title>Reference for: position:sticky with scrolled clip should prerender everything and correctly move the clip</title>
      5 
      6 <style>
      7 
      8 html {
      9  scrollbar-width: none;
     10 }
     11 
     12 body {
     13  margin: 0;
     14  height: 4000px;
     15 }
     16 
     17 .completeBox {
     18  position: absolute;
     19  left: 0;
     20  top: 100px;
     21  width: 100px;
     22  height: 100px;
     23  box-sizing: border-box;
     24  border: 1px solid black;
     25 }
     26 
     27 </style>
     28 
     29 <div class="completeBox"></div>
     30 
     31 <script>
     32 
     33 document.documentElement.scrollTop = 100;
     34 
     35 </script>