Tapping after CSS-based table casues an infinite loop in wordRangeFromPosition
[WebKit-https.git] / LayoutTests / compositing / toggle-compositing.html
1 <body style="background-color: green;">
2     <!-- This test should not assert in WebKit2, nor should it show flashing if you load it manually. -->
3     <div id="target"></div>
4     <script>
5         if (window.testRunner) {
6             testRunner.dumpAsText();
7             testRunner.waitUntilDone();
8         }
9         
10         var count = 0;
11         var intervalID = window.setInterval(function() {
12             var target = document.getElementById("target");
13             target.style.webkitTransform = "translateZ(0)";
14             document.body.offsetTop;
15             target.style.removeProperty("-webkit-transform");
16             
17             if (++count == 10) {
18               window.clearInterval(intervalID);
19               if (window.testRunner)
20                 testRunner.notifyDone();
21             }
22         }, 100);
23     </script>
24 </body>