blob: 0e56ee5d2be25512f3b300cb285ec493b36a3a51 [file] [log] [blame]
<!DOCTYPE html>
<div id="teleport" style="position:absolute; top:10000px; overflow:hidden;"></div>
<div style="position:absolute; top:10000px; height:150vh;">PASS</div>
<script src="../../resources/testharness.js"></script>
<script src="../../resources/testharnessreport.js"></script>
<script>
test(function() {
window.location.href = "#teleport";
assert_equals(document.documentElement.scrollTop, 10000);
}, "Even empty objects should be scrolled into view");
</script>