tor-browser

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

position-sticky-child-multicolumn-ref.html (908B)


      1 <!DOCTYPE html>
      2 <title>Reference for multicolumn under position:sticky should be positioned correctly</title>
      3 <style>
      4  body {
      5    margin: 0;
      6  }
      7  #scroller {
      8    overflow-y: scroll;
      9    width: 200px;
     10    height: 200px;
     11  }
     12  #relative {
     13    position: relative;
     14    top: 100px;
     15    margin: 10px;
     16  }
     17  #child {
     18    width: 100px;
     19    height: 100px;
     20    background: green;
     21  }
     22  #contents {
     23    position: relative;
     24    top: 10%;
     25    left: 10%;
     26    width: 80%;
     27    height: 80%;
     28    background: lightgreen;
     29  }
     30  #spacer {
     31    height: 400px;
     32  }
     33 </style>
     34 
     35 <div id="scroller">
     36  <div id="relative">
     37    <div id="child">
     38      <div id="contents"></div>
     39    </div>
     40  </div>
     41  <div id="spacer"></div>
     42 </div>
     43 
     44 <div>You should see a light green box above with a dark green border, no blue should be visible.</div>
     45 
     46 <script>
     47  window.addEventListener('load', function() {
     48    scroller.scrollTop = 100;
     49  });
     50 </script>