summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/toggle-compositing.html
blob: 1a2e9ee55c26c2b2d38619a7defd89c2e1042eb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<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.testRunner) {
            testRunner.dumpAsText();
            testRunner.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.testRunner)
                testRunner.notifyDone();
            }
        }, 100);
    </script>
</body>