OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../../resources/testharness.js"></script> |
| 3 <script src="../../resources/testharnessreport.js"></script> |
| 4 <div style="height: 2000px"></div> |
| 5 <div style="overflow: scroll; height: 100px"> |
| 6 <div id="scroll" style="margin-top: -15px; height: 15px; width: 15px;backgroun
d-color: red"></div> |
| 7 Target |
| 8 </div> |
| 9 <script> |
| 10 test(function(t) { |
| 11 var scroll = document.getElementById("scroll"); |
| 12 scroll.scrollIntoView(); |
| 13 assert_not_equals(window.scrollY, 0); |
| 14 }, "Tests that when the element to be scrolled can't be scrolled to visible in i
ts closest scrollable parent, the element's position should still be scrolled in
to view"); |
| 15 </script> |
OLD | NEW |