Index: LayoutTests/fast/scroll-behavior/overflow-interrupted-scroll.html |
diff --git a/LayoutTests/fast/scroll-behavior/overflow-interrupted-scroll.html b/LayoutTests/fast/scroll-behavior/overflow-interrupted-scroll.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6170adb2d04e692927b928c9d2db19bbc0a5a97f |
--- /dev/null |
+++ b/LayoutTests/fast/scroll-behavior/overflow-interrupted-scroll.html |
@@ -0,0 +1,39 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+ <style> |
+ #container { |
+ width: 200px; |
+ height: 200px; |
+ overflow: scroll; |
+ } |
+ |
+ #content { |
+ width: 7500px; |
+ height: 7500px; |
+ background-color: blue; |
+ } |
+ </style> |
+ <script src="../../resources/testharness.js"></script> |
+ <script src="../../resources/testharnessreport.js"></script> |
+ <script src="resources/scroll-interruption-test.js"></script> |
+ <script type="text/javascript"> |
+ function doTest() |
+ { |
+ const testCase = {y1: 40, y2: 4000, y3: 15}; |
+ const innerPoint = {x: 100, y: 100}; |
+ var element = document.getElementById("container"); |
+ runScrollInterruptionTests(element, testCase, innerPoint); |
+ } |
+ |
+ window.addEventListener('load', doTest, false); |
+ </script> |
+</head> |
+ |
+<body> |
+ <p>Test that interrupting a smooth scroll on an overflow:scroll element works with both scroll behaviors and with input</p> |
+ <div id="container"> |
+ <div id="content"></div> |
+ </div> |
+</body> |
+</html> |