OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <style type="text/css"> | 3 <style type="text/css"> |
4 body { | 4 body { |
5 margin: 0; | 5 margin: 0; |
6 overflow: hidden; | 6 overflow: hidden; |
7 } | 7 } |
8 | 8 |
9 .container { | 9 .container { |
10 visibility: hidden; | 10 visibility: hidden; |
(...skipping 19 matching lines...) Expand all Loading... |
30 .visible-box { | 30 .visible-box { |
31 background-color:green; | 31 background-color:green; |
32 } | 32 } |
33 .composited { | 33 .composited { |
34 -webkit-transform:translateZ(0); | 34 -webkit-transform:translateZ(0); |
35 height: 10px; | 35 height: 10px; |
36 width: 10px; | 36 width: 10px; |
37 } | 37 } |
38 pre { | 38 pre { |
39 opacity: 0; /* hide in pixel result */ | 39 opacity: 0; /* hide in pixel result */ |
| 40 height: 16px; /* avoid platform-dependent height difference of hidden te
xt layer-tree */ |
40 } | 41 } |
41 </style> | 42 </style> |
42 <script> | 43 <script> |
43 if (window.layoutTestController) | 44 if (window.layoutTestController) |
44 layoutTestController.dumpAsText(true); | 45 layoutTestController.dumpAsText(true); |
45 | 46 |
46 function dumpLayers() | 47 function dumpLayers() |
47 { | 48 { |
48 if (window.layoutTestController) | 49 if (window.layoutTestController) |
49 document.getElementById('layer-tree').innerText = layoutTestControll
er.layerTreeAsText(); | 50 document.getElementById('layer-tree').innerText = layoutTestControll
er.layerTreeAsText(); |
(...skipping 11 matching lines...) Expand all Loading... |
61 <div style="visibility:visible;"> | 62 <div style="visibility:visible;"> |
62 <div class="visible-box box"> | 63 <div class="visible-box box"> |
63 <div class="composited box"></div> | 64 <div class="composited box"></div> |
64 </div> | 65 </div> |
65 </div> | 66 </div> |
66 </div> | 67 </div> |
67 </div> | 68 </div> |
68 <pre id="layer-tree">Layer tree goes here in DRT</pre> | 69 <pre id="layer-tree">Layer tree goes here in DRT</pre> |
69 </body> | 70 </body> |
70 </html> | 71 </html> |
OLD | NEW |