OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 .box { | 6 .box { |
7 position: relative; | 7 position: relative; |
8 height: 100px; | 8 height: 100px; |
9 width: 100px; | 9 width: 100px; |
10 margin: 10px; | 10 margin: 10px; |
11 left: 0; | 11 left: 0; |
12 top: 0; | 12 top: 0; |
13 background-color: silver; | 13 background-color: silver; |
14 } | 14 } |
15 | 15 |
16 .perspective { | 16 .perspective { |
17 width: 300px; | 17 width: 300px; |
18 border: 1px solid black; | 18 border: 1px solid black; |
19 padding: 20px; | 19 padding: 20px; |
20 -webkit-perspective: 500px; | 20 -webkit-perspective: 500px; |
21 } | 21 } |
22 | 22 |
23 .composited { | 23 .composited { |
24 -webkit-transform: translateZ(1px); | 24 transform: translateZ(1px); |
25 } | 25 } |
26 </style> | 26 </style> |
27 | 27 |
28 <script> | 28 <script> |
29 if (window.testRunner) | 29 if (window.testRunner) |
30 testRunner.dumpAsText(); | 30 testRunner.dumpAsText(); |
31 | 31 |
32 function dumpLayers() | 32 function dumpLayers() |
33 { | 33 { |
34 var layersResult = document.getElementById('layers'); | 34 var layersResult = document.getElementById('layers'); |
(...skipping 13 matching lines...) Expand all Loading... |
48 This layer should not have backing store. | 48 This layer should not have backing store. |
49 <div class="box composited"> | 49 <div class="box composited"> |
50 </div> | 50 </div> |
51 </div> | 51 </div> |
52 </div> | 52 </div> |
53 | 53 |
54 <pre id="layers">Layer tree goes here in DRT</pre> | 54 <pre id="layers">Layer tree goes here in DRT</pre> |
55 | 55 |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |