tor-browser

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

sticky-content.html (528B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="http://crbug.com/1146925">
      3 <link rel="match" href="sticky-content-ref.html">
      4 <body>
      5 <style>
      6 body {
      7  margin: 0;
      8 }
      9 
     10 fieldset div {
     11  height:1000px;
     12 }
     13 
     14 span {
     15  background: lime;
     16  display: block;
     17  height: 40px;
     18  position: sticky;
     19  top: 4px;
     20  width: 40px;
     21 }
     22 
     23 fieldset {
     24  border: none;
     25  height: 400px;
     26  margin: 0;
     27  overflow: scroll;
     28  padding: 0;
     29 }
     30 </style>
     31 <fieldset><div><span></span></div></fieldset>
     32 <script>
     33 document.querySelector('fieldset').scrollTop = 1000;
     34 </script>
     35 </body>