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

Side by Side 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, 3 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/layout/LayoutBox.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 id ="container" style="height: 300px; overflow: auto; margin-top: 200px; ma rgin-bottom: 600px;">
5 <select id="content" multiple="multiple" style="height: 600px;">
6 <option>I</option>
7 <option>am</option>
8 <option>already</option>
9 <option>in</option>
10 <option>the</option>
11 <option>view</option>
12 <option>.</option>
13 <option>Do</option>
14 <option>not</option>
15 <option>scroll</option>
16 <option>me</option>
17 <option>up</option>
18 <option>.</option>
19 </select>
20 </div>
21
22 <script>
23 test(function(t) {
24 var content = document.getElementById("content");
bokan 2016/08/29 13:59:39 Just FYI, single quotes in javascript are fairly c
25 content.focus();
26 assert_equals(window.scrollY, 0);
27 }, "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.");
28 </script>
OLDNEW
« 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