summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/layers/scrollByLines-overflow-no-layer.html
blob: 6e4b4c5f7aa33b750f04e3e82e4b19e5c6e375c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<!DOCTYPE>
<html>
<head>
<style>
    #overflow {
        height: 100px;
        width: 100px;
        overflow: hidden;
    }
</style>
<script>
    if (window.testRunner)
        testRunner.dumpAsText();

    function testScrollByLine()
    {
        var overflowDiv = document.getElementById("overflow");
        overflowDiv.scrollByLines(10);
        overflowDiv.scrollByPages(10);
        overflowDiv.innerHTML = "PASSED: The test did not crash!";
    }
    window.addEventListener("load", testScrollByLine, false);
</script>
</head>
<body>
    <div><a href="https://bugs.webkit.org/show_bug.cgi?id=83728">bug 83728</a>: Reduce the use of RenderLayer outside of the rendering code</div>
    <div>This test passes if you see PASSED below.</div>
    <div id="overflow">FAILED</div>
<body>
</html>