Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / zoom-change-triggering-layout.html
blobb9da07ff041ee2e41212df8354e2df414695d0e3
1 <p>
2 Test for <i><a href="rdar://problem/8119781">rdar://problem/8119781</a>
3 Crash zooming into Word document at office.live.com</i>.
4 </p>
5 <p>
6 The test passes if it does not crash. To test in Safari, make sure View > Zoom Text Only is <i>not</i> selected,
7 then choose View > Zoom In.
8 </p>
9 <iframe id="iframe"></iframe>
10 <script>
11 var iframe = document.getElementById("iframe");
12 var target = iframe.contentDocument.body.appendChild(iframe.contentDocument.createElement("input"));
13 target.style.overflow = "hidden";
14 iframe.contentWindow.addEventListener("resize", function(event) {
15 if (target.parentNode)
16 target.parentNode.removeChild(target);
17 }, false);
19 document.body.offsetTop;
21 if (window.testRunner) {
22 testRunner.dumpAsText();
23 eventSender.zoomPageIn();
25 </script>