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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <div style="height: 2000px"></div>
5 <div style="overflow: scroll; height: 100px">
6 <div id="scroll" style="margin-top: -15px; height: 15px; width: 15px;backgroun d-color: red"></div>
7 Target
8 </div>
9 <script>
10 test(function(t) {
11 var scroll = document.getElementById("scroll");
12 scroll.scrollIntoView();
13 assert_not_equals(window.scrollY, 0);
14 }, "Tests that when the element to be scrolled can't be scrolled to visible in i ts closest scrollable parent, the element's position should still be scrolled in to view");
15 </script>
OLDNEW
« 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