4 <script src="../../resources/run-after-display.js"></script>
17 background-color: red;
23 transform:translateZ(0);
28 if (window.testRunner) {
29 testRunner.waitUntilDone();
30 testRunner.dumpAsTextWithPixelResults();
32 runAfterDisplay(function() {
33 // This test passes if this element is repainted correctly, even
34 // on a page that is composited and has horizontal overflow.
35 var elem = document.getElementById("layer");
36 elem.style.backgroundColor = "green";
37 if (window.testRunner)
38 testRunner.notifyDone();
41 window.addEventListener('load', doTest, false);
44 <div id="layer" class=""></div>