4 <script src=
"../resources/run-after-layout-and-paint.js"></script>
12 background-color: red;
15 transform:translateZ(
0);
21 background-color: green;
22 clip: rect(
25px,
75px,
75px,
25px);
26 if (window
.testRunner
) {
27 testRunner
.dumpAsTextWithPixelResults();
28 testRunner
.waitUntilDone();
31 runAfterLayoutAndPaint(function() {
32 // The change in clip style should be reflected immediately in the size
33 // of the composited clipper layer. After changing the clip, it should
34 // entirely cover the indicator.
35 var clipper
= document
.getElementById("clipper");
36 clipper
.style
.clip
= "rect(0px, 100px, 100px, 0px)";
37 if (window
.testRunner
)
38 testRunner
.notifyDone();
41 window
.addEventListener("load", doTest
, false);
45 <div id=
"indicator"></div>
46 <div id=
"clipper"></div>