tor-browser

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

contain-layout-021-ref.html (527B)


      1 <!DOCTYPE html>
      2 <meta charset="utf-8">
      3 <title>CSS Containment Test: Layout containment fixed positioned descendants</title>
      4 <style>
      5 #green {
      6  background: green;
      7  width: 100px;
      8  height: 100px;
      9 }
     10 body {
     11  height: 3000px;
     12  margin: 0px;
     13 }
     14 #spacer {
     15  height: 200px;
     16 }
     17 </style>
     18 <script>
     19 function runTest() {
     20  document.documentElement.scrollTop += 200;
     21 }
     22 </script>
     23 <body onload="runTest()">
     24 <div id="spacer"></div>
     25 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     26 <div id="green"></div>
     27 </body>