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

Unified 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: Improve the visual effect of the test. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/layout/LayoutBox.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/absolute-position-overflow-clip.html
diff --git a/third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-overflow-clip.html b/third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-overflow-clip.html
new file mode 100644
index 0000000000000000000000000000000000000000..120c1ed9fd61fc97256588105b0b4a785497b565
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-overflow-clip.html
@@ -0,0 +1,22 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<body id="body">
+ <div style="height: 500px;overflow-x: hidden;">
+ <div style="height: 2000px; background-color: blue;"></div>
+ <div style="position: absolute;">
+ <div style="height: 1000px; background-color: yellow;"></div>
+ <a href="somelink" id="focusable" style="font-size:60px">anchor</a>
+ </div>
+ <div style="height: 2000px; background-color: red;"></div>
+ </div>
+</body>
+<script type="text/javascript">
+window.onload = function() {
+ test(function(t) {
+ var focusable = document.getElementById("focusable");
+ focusable.focus();
+ assert_not_equals(window.scrollY, 0);
+ }, "Tests that for an element with absolute position and whose parent has overflowclip, it can still scroll automatically.");
+}
+</script>
« 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