summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/css/zoom-change-triggering-layout.html
blob: b9da07ff041ee2e41212df8354e2df414695d0e3 (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
<p>
    Test for <i><a href="rdar://problem/8119781">rdar://problem/8119781</a>
    Crash zooming into Word document at office.live.com</i>.
</p>
<p>
    The test passes if it does not crash. To test in Safari, make sure View > Zoom Text Only is <i>not</i> selected,
    then choose View > Zoom In.
</p>
<iframe id="iframe"></iframe>
<script>
    var iframe = document.getElementById("iframe");
    var target = iframe.contentDocument.body.appendChild(iframe.contentDocument.createElement("input"));
    target.style.overflow = "hidden";
    iframe.contentWindow.addEventListener("resize", function(event) {
        if (target.parentNode)
            target.parentNode.removeChild(target);
    }, false);

    document.body.offsetTop;

    if (window.testRunner) {
        testRunner.dumpAsText();
        eventSender.zoomPageIn();
    }
</script>