OLD | NEW |
1 <!DOCTYPE> | 1 <!DOCTYPE> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <!-- Check for compositing WebGL layer and accelerated background-color layer. -
-> | 4 <!-- Check for compositing WebGL layer and accelerated background-color layer. -
-> |
5 <!-- On load, there is not WebGL layer. WebGL layer is created on the fly. --> | 5 <!-- On load, there is not WebGL layer. WebGL layer is created on the fly. --> |
6 <style> | 6 <style> |
7 #background { | 7 #background { |
8 width: 200px; | 8 width: 200px; |
9 height: 200px; | 9 height: 200px; |
10 display: block; | 10 display: block; |
11 } | 11 } |
12 #canvas { | 12 #canvas { |
13 width: 200px; | 13 width: 200px; |
14 height: 200px; | 14 height: 200px; |
15 display: block; | 15 display: block; |
16 } | 16 } |
17 .blue { | 17 .blue { |
18 width: 50px; | 18 width: 50px; |
19 height: 50px; | 19 height: 50px; |
20 background-color: rgba(0, 0, 255, 0.5); | 20 background-color: rgba(0, 0, 255, 0.5); |
21 display: block; | 21 display: block; |
22 top: -50px; | 22 top: -50px; |
23 position: relative; | 23 position: relative; |
24 } | 24 } |
25 .composited { | 25 .composited { |
26 -webkit-transform: translateZ(0); | 26 transform: translateZ(0); |
27 } | 27 } |
28 </style> | 28 </style> |
29 <script type="text/javascript" charset="utf-8"> | 29 <script type="text/javascript" charset="utf-8"> |
30 if (window.testRunner) { | 30 if (window.testRunner) { |
31 testRunner.waitUntilDone(); | 31 testRunner.waitUntilDone(); |
32 testRunner.dumpAsTextWithPixelResults(); | 32 testRunner.dumpAsTextWithPixelResults(); |
33 } | 33 } |
34 | 34 |
35 function doTest() | 35 function doTest() |
36 { | 36 { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 window.addEventListener('load', doTest, false); | 75 window.addEventListener('load', doTest, false); |
76 </script> | 76 </script> |
77 </head> | 77 </head> |
78 <body> | 78 <body> |
79 <div id="background"> | 79 <div id="background"> |
80 <canvas id="canvas"></canvas> | 80 <canvas id="canvas"></canvas> |
81 <div class="blue composited"></div> | 81 <div class="blue composited"></div> |
82 </div> | 82 </div> |
83 </body> | 83 </body> |
84 </html> | 84 </html> |
OLD | NEW |