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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-overflow-clip.html

Issue 2336013002: ScrollRectToVisible should bubble up through its layout container. (Closed)
Patch Set: Modify the test for Mac 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../resources/testharness.js"></script>
3 <script src="../../resources/testharnessreport.js"></script>
4 <body>
5 <div style="overflow-x: hidden;">
6 <div id = "mydiv" style="position: absolute;" />
7 </div>
8 </body>
9 <script type="text/javascript">
10 window.onload = function() {
11 for (var i = 0; i < 500; ++i) {
12 var br = document.createElement('br');
13 document.getElementById("mydiv").appendChild(br);
14 }
15
16 test(function(t) {
17 var focusable = document.createElement("input");
18 document.getElementById("mydiv").appendChild(focusable);
bokan 2016/09/13 14:38:46 The test would be more clear if you didn't dynamic
19 focusable.focus();
20 assert_not_equals(window.scrollY, 0);
21 }, "Tests that for an element with absolute position and whose parent has ov erflowclip, it can still scroll automatically.");
22 }
23 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698