Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / scroll-during-zoom-change.html
blob0f5fca7c252e6464a2c4c182c0af594332ad4029
1 <div>
2 Test for <i><a href="rdar://problem/6634768">rdar://problem/6634768</a>
3 Reproducible crash in Layer::updateScrollCornerStyle() using full-page zoom at MobileMe Contacts</i>.
4 </div>
5 <div>
6 The test passed if it did not crash.
7 </div>
8 <div id="target" style="
9 overflow: auto;
10 height: 200px;
11 width: 200px;
13 <div style="height: 500px;"></div>
14 </div>
15 <script>
16 function scrolled(event)
18 event.target.parentNode.removeChild(event.target);
19 if (window.testRunner) {
20 testRunner.notifyDone();
24 function test()
26 var target = document.getElementById("target");
27 target.scrollTop = 50;
28 document.body.offsetTop;
29 target.addEventListener("scroll", scrolled, false);
30 document.body.style.zoom = 2;
33 if (window.testRunner) {
34 testRunner.dumpAsText();
35 testRunner.waitUntilDone();
37 test();
38 </script>