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

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: Bubbling up through the layout container. 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 id="body">
5 <div style="height: 500px;overflow-x: hidden;">
6 <div style="height: 2000px"></div>
7 <div style="position: absolute;">
8 <div style="height: 1000px"></div>
9 <a href="somelink" id="focusable">anchor</a>
10 </div>
11 <div style="height: 2000px"></div>
12 </div>
13 </body>
14 <script type="text/javascript">
15 window.onload = function() {
16 test(function(t) {
17 var focusable = document.getElementById("focusable");
18 focusable.focus();
19 assert_not_equals(window.scrollY, 0);
20 }, "Tests that for an element with absolute position and whose parent has ov erflowclip, it can still scroll automatically.");
21 }
22 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698