tor-browser

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

position-sticky-offset-print.html (722B)


      1 <!DOCTYPE html>
      2 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1485969">
      3 <link rel="match" href="../../reference/ref-filled-green-100px-square-print-ref.html">
      4 <style>
      5  :root {
      6    print-color-adjust: exact;
      7  }
      8 </style>
      9 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
     10 <div id="scroller" style="position:relative; width:200px; height:100px; overflow:hidden;">
     11  <div style="position:absolute; width:1000px;">
     12    <div style="position:sticky; left:0; height:100px; width:100px; background:green;"></div>
     13  </div>
     14  <div style="width:100px; height:100px; background:red;"></div>
     15 </div>
     16 <script>
     17 document.getElementById('scroller').scrollLeft = 100;
     18 </script>