tor-browser

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

overscroll.html (1078B)


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