Tapping after CSS-based table casues an infinite loop in wordRangeFromPosition
[WebKit-https.git] / LayoutTests / compositing / repaint-container-assertion-when-toggling-compositing.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <title>This tests that we don't assert while finding the repaint container for the content that just lost compositing.</title>
5 <script>
6   if (window.testRunner)
7     testRunner.dumpAsText();
8 </script>
9 </head>
10 <body>
11 <div style="-webkit-columns: 4;">PASS if no crash or assert in debug mode.</div>
12 <script>
13   var head = document.getElementsByTagName("head")[0];
14   var div = document.getElementsByTagName("div")[0];
15   var style = document.createElement("style");
16   style.innerHTML="div {-webkit-animation-duration: 1s; -webkit-animation-timing-function: ease-in;}";
17   head.appendChild(style);
18   head.parentNode.removeChild(head);
19   document.execCommand("SelectAll");
20   div.setAttribute("style","color: red;");
21 </script>
22 </body>
23 </html>