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 .clipping { | 16 .clipping { |
17 position: relative; | 17 position: relative; |
18 z-index: 0; | 18 z-index: 0; |
19 width: 300px; | 19 width: 300px; |
20 border: 1px solid black; | 20 border: 1px solid black; |
21 padding: 20px; | 21 padding: 20px; |
22 overflow: hidden; | 22 overflow: hidden; |
23 } | 23 } |
24 | 24 |
25 .composited { | 25 .composited { |
26 -webkit-transform: translateZ(0); | 26 transform: translateZ(0); |
27 } | 27 } |
28 </style> | 28 </style> |
29 | 29 |
30 <script> | 30 <script> |
31 if (window.testRunner) | 31 if (window.testRunner) |
32 testRunner.dumpAsText(); | 32 testRunner.dumpAsText(); |
33 | 33 |
34 function dumpLayers() | 34 function dumpLayers() |
35 { | 35 { |
36 var layersResult = document.getElementById('layers'); | 36 var layersResult = document.getElementById('layers'); |
(...skipping 13 matching lines...) Expand all Loading... |
50 This layer should not have backing store. | 50 This layer should not have backing store. |
51 <div class="box composited"> | 51 <div class="box composited"> |
52 </div> | 52 </div> |
53 </div> | 53 </div> |
54 </div> | 54 </div> |
55 | 55 |
56 <pre id="layers">Layer tree goes here in DRT</pre> | 56 <pre id="layers">Layer tree goes here in DRT</pre> |
57 | 57 |
58 </body> | 58 </body> |
59 </html> | 59 </html> |
OLD | NEW |