Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / visibility / visibility-simple-canvas2d-layer.html
blobdc89b91d5931ffa5b88c5a7530b92bd3c6b55a2c
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 canvas {
6 background-color: rgba(0, 0, 0, 1);
9 .hidden {
10 visibility: hidden;
13 .visible {
14 visibility: visible;
17 .composited {
18 transform: translatez(0);
20 </style>
22 <script>
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);
34 function init()
36 drawCanvas("one", "green");
37 drawCanvas("two", "red");
38 drawCanvas("three", "red");
40 </script>
41 </head>
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>
49 </body>
50 </html>