summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/dynamic/window-resize-scrollbars-test.html
blob: 64a33344d7f2aed9f51e97d5026ace781b799539 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<script>
if (window.testRunner)
    testRunner.useUnfortunateSynchronousResizeMode();
</script>
<body>
    This window should not have scroll bars. If it has scroll bars, try to use them.
    <script>
        var width = innerWidth;
        var height = innerHeight;

        document.documentElement.style.height = height - 32 + "px";
        document.documentElement.style.width = width - 32 + "px";
        document.body.offsetTop;

        resizeTo(outerWidth - 24, outerHeight - 24);
    </script>
</body>