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