OLD | NEW |
(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 style="height: 2000px"></div> |
| 8 <input type="text" id="focusable"/> |
| 9 </div> |
| 10 </div> |
| 11 </body> |
| 12 <script type="text/javascript"> |
| 13 window.onload = function() { |
| 14 test(function(t) { |
| 15 var focusable = document.getElementById("focusable"); |
| 16 focusable.focus(); |
| 17 assert_not_equals(window.scrollY, 0); |
| 18 }, "Tests that for an element with absolute position and whose parent has ov
erflowclip, it can still scroll automatically."); |
| 19 } |
| 20 </script> |
OLD | NEW |