summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/scrolling/scroll-without-document-element-renderer.html
blob: 9d14ea089a9fa32781dc75857022e5a6b9c75469 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<!DOCTYPE html>
<script>
window.onload = function() {
    if (window.testRunner)
        window.testRunner.dumpAsText();

    document.documentElement.style.display = "none";

    // Zoom so that the window becomes scrollable.
    if (window.internals)
        window.internals.setPageScaleFactor(2.0);

    window.scrollBy(0, 1);

    document.documentElement.style.display = "inline";
}
</script>

<div>This test passes if it does not crash.</div>