tor-browser

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

scrollLeft-of-scroller-with-wider-scrollbar.html (648B)


      1 <!DOCTYPE html>
      2 <title>The maximum value of scrollLeft shouldn't be affected by scrollbar even if it's wider than scroller</title>
      3 <meta charset="utf-8">
      4 <link rel="help" href="https://drafts.csswg.org/cssom-view/#dom-element-scrollleft">
      5 
      6 <div id="scroller" style="overflow: scroll; width: 5px;height: 300px;">
      7    <div style="width:100px; height: 1px"></div>
      8 </div>
      9 <script src="/resources/testharness.js"></script>
     10 <script src="/resources/testharnessreport.js"></script>
     11 <script>
     12    test(function() {
     13        scroller.scrollLeft = 1000;
     14        assert_equals(scroller.scrollLeft, 100);
     15    }, "Test the maxmium value of scrollLeft");
     16 </script>