6 background-color: rgba(
0,
0,
0,
1);
18 transform: translatez(
0);
23 if (window
.testRunner
)
24 testRunner
.dumpAsTextWithPixelResults();
26 function drawCanvas(canvasID
, color
)
28 var theCanvas
= document
.getElementById(canvasID
);
29 var canvasContext
= theCanvas
.getContext("2d");
30 canvasContext
.fillStyle
= color
;
31 canvasContext
.fillRect(0, 0, 150, 150);
36 drawCanvas("one", "green");
37 drawCanvas("two", "red");
38 drawCanvas("three", "red");
43 <body onload=
"init()">
44 <!-- Tests CSS visibility flag for a composited canvas2D layer. -->
45 <!-- Pixel test only. Only the green canvas2d should be visible. The other two should be hidden. -->
46 <div><canvas id=
"one" class=
"composited visible" width=
"150" height=
"150"></canvas></div>
47 <div><canvas id=
"two" class=
"hidden" width=
"150" height=
"150"></canvas></div>
48 <div><canvas id=
"three" class=
"composited hidden" width=
"150" height=
"150"></canvas></div>