| <body style="background-color: green;"> |
| <!-- This test should not assert in WebKit2, nor should it show flashing if you load it manually. --> |
| <div id="target"></div> |
| <script> |
| if (window.layoutTestController) { |
| layoutTestController.dumpAsText(); |
| layoutTestController.waitUntilDone(); |
| } |
| |
| var count = 0; |
| var intervalID = window.setInterval(function() { |
| var target = document.getElementById("target"); |
| target.style.webkitTransform = "translateZ(0)"; |
| document.body.offsetTop; |
| target.style.removeProperty("-webkit-transform"); |
| |
| if (++count == 10) { |
| window.clearInterval(intervalID); |
| if (window.layoutTestController) |
| layoutTestController.notifyDone(); |
| } |
| }, 100); |
| </script> |
| </body> |