3 <!-- crbug.com/336676 - layer creation should not accidentally skip requesting
4 the compositor for a frame to be produced. When there were no other
5 repaints or layout/style changes, the simple act of adding a layer was not
6 triggering compositing updates by itself. To recreate this scenario, an
7 out-of-flow canvas element is added to an empty composited layer. The
8 actual container layer does not get added to the tree until it realizes
9 that it receives the canvas content. -->
14 <script src=
"../../fast/repaint/resources/text-based-repaint.js"></script>
18 transform: translatez(
0);
40 function repaintTest() {
41 var canvasElement
= document
.createElement("canvas");
42 canvasElement
.width
= 200;
43 canvasElement
.height
= 200;
44 var context
= canvasElement
.getContext("2d");
45 context
.fillStyle
= "green";
46 context
.fillRect(80, 80, 50, 50);
47 document
.getElementById("container").appendChild(canvasElement
);
52 <body onload=
"runRepaintAndPixelTest()">
53 <div id=
"container" class=
"composited box"></div>