| 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..443db8706d6003f7f7d6c91829c896346bcd964e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/fast/scrolling/absolute-position-overflow-clip.html
|
| @@ -0,0 +1,20 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../resources/testharness.js"></script>
|
| +<script src="../../resources/testharnessreport.js"></script>
|
| +<body>
|
| + <div style="overflow-x: hidden;">
|
| + <div id ="mydiv" style="position: absolute;">
|
| + <div style="height: 2000px"></div>
|
| + <input type="text" id="focusable"/>
|
| + </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>
|
|
|