Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(935)

Unified Diff: third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-small-size-ancestor.html

Issue 2262373003: Clip PaintLayerScrollableArea::scrollIntoView return to layer bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix the code style Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698