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

Unified Diff: third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-hidden-element.html

Issue 2576963002: Scroll the position into view when the content is not visible. (Closed)
Patch Set: remove the if condition. Created 3 years, 11 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/paint/PaintLayerScrollableArea.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-hidden-element.html
diff --git a/third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-hidden-element.html b/third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-hidden-element.html
new file mode 100644
index 0000000000000000000000000000000000000000..f0ec9e65dcd547f2ad5095b0b8f9b7e2eba3e30e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/scrolling/scroll-into-view-hidden-element.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<div style="height: 2000px"></div>
+<div style="overflow: scroll; height: 100px">
+ <div id="scroll" style="margin-top: -15px; height: 15px; width: 15px;background-color: red"></div>
+ Target
+</div>
+<script>
+test(function(t) {
+ var scroll = document.getElementById("scroll");
+ scroll.scrollIntoView();
+ assert_not_equals(window.scrollY, 0);
+}, "Tests that when the element to be scrolled can't be scrolled to visible in its closest scrollable parent, the element's position should still be scrolled into view");
+</script>
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698