tor-browser

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

overscroll-scrollbar.html (1032B)


      1 <!DOCTYPE html>
      2 <html
      3      reftest-async-scroll
      4      reftest-displayport-x="0" reftest-displayport-y="0"
      5      reftest-displayport-w="800" reftest-displayport-h="2000"
      6      reftest-async-scroll-x="0" reftest-async-scroll-y="-200">
      7 <head>
      8  <style>
      9    body {
     10      height: 3000px;
     11      margin: 0;
     12    }
     13    div {
     14      position: absolute;
     15      top: 0px;
     16      width: 200px;
     17      height: 200px;
     18      background: green;
     19    }
     20  </style>
     21 </head>
     22 <body >
     23  <!-- Test that an overscroll past one end of a viewport is rendered
     24      as having the content create a gutter, and that
     25      the overscroll is reduced by some factor such that 
     26      a 100px scroll must produce a rendered translation of less than
     27      100px.
     28 
     29      Current overscroll physics mean that an instantaneous overscroll
     30      by 200px produces an 8px gutter. This is governed by the logic in
     31      Axis::ApplyResistance(); if that logic is changed, this test will
     32      need to be modified to account for the new result.
     33  -->
     34  <div></div>
     35 </body>
     36 </html>