Index: third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html |
diff --git a/third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html b/third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6fccdc2810e1871fdc64bb89819b4c40c8692386 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html |
@@ -0,0 +1,28 @@ |
+<!DOCTYPE html> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<div id ="container" style="height: 300px; overflow: auto; margin-top: 200px; margin-bottom: 600px;"> |
+ <select id="content" multiple="multiple" style="height: 600px;"> |
+ <option>I</option> |
+ <option>am</option> |
+ <option>already</option> |
+ <option>in</option> |
+ <option>the</option> |
+ <option>view</option> |
+ <option>.</option> |
+ <option>Do</option> |
+ <option>not</option> |
+ <option>scroll</option> |
+ <option>me</option> |
+ <option>up</option> |
+ <option>.</option> |
+ </select> |
+</div> |
+ |
+<script> |
+test(function(t) { |
+ var content = document.getElementById("content"); |
bokan
2016/08/29 13:59:39
Just FYI, single quotes in javascript are fairly c
|
+ content.focus(); |
+ assert_equals(window.scrollY, 0); |
+}, "Tests that when the parent is already in the view of page, the page will not scroll the parent even when the child is not completely in the view."); |
+</script> |