scrollbar-hittest.html 1.0 KB

1234567891011121314151617181920212223242526
  1. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
  2. "http://www.w3.org/TR/html4/strict.dtd">
  3. <html lang="en">
  4. <head>
  5. </head>
  6. <body>
  7. <p><b>BUG ID:</b> <a href="http://bugs.webkit.org/show_bug.cgi?id=5829">http://bugs.webkit.org/show_bug.cgi?id=5829</a> REGRESSION: cursor tracking and hit testing in scrollable block don't take borders into account</p>
  8. <p id="test" style="background-color:skyblue; padding:3px;"><b>STEPS TO TEST:</b> <br>
  9. 1. Scroll down by clicking in the empty space below the scroll thumb. <br>
  10. 2. Scroll up by clicking in the empty space above the scroll thumb.</p>
  11. <p id="success" style="background-color:palegreen; padding:3px;"><b>TEST PASS:</b>
  12. Scroll thumb will move back up to the top.
  13. </p>
  14. <p id="failure" style="background-color:#FF3300; padding:3px;"><b>TEST FAIL:</b>
  15. Scroll thumb will NOT move back up to the top.
  16. </p>
  17. <div style="overflow: auto; height:300px; width:50px; border-bottom: solid red 50px; border-top: solid green 20px;">
  18. <div style="height:400px;"></div>
  19. </div>
  20. </body>
  21. </html>