OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #caption { | 5 #caption { |
6 width: 200px; | 6 width: 200px; |
7 height: 100px; | 7 height: 100px; |
8 background-color: green; | 8 background-color: green; |
9 -webkit-transform: translateZ(0); | 9 transform: translateZ(0); |
10 } | 10 } |
11 .inner { | 11 .inner { |
12 visibility: visible; | 12 visibility: visible; |
13 background-color: blue; | 13 background-color: blue; |
14 } | 14 } |
15 </style> | 15 </style> |
16 <script type="text/javascript"> | 16 <script type="text/javascript"> |
17 if (window.testRunner) | 17 if (window.testRunner) |
18 testRunner.dumpAsText(); | 18 testRunner.dumpAsText(); |
19 | 19 |
20 function doTest() { | 20 function doTest() { |
21 document.getElementById("caption").style.visibility = "hidden"; | 21 document.getElementById("caption").style.visibility = "hidden"; |
22 if (window.testRunner && window.internals) | 22 if (window.testRunner && window.internals) |
23 document.getElementById('layertree').innerText = window.internal
s.layerTreeAsText(document); | 23 document.getElementById('layertree').innerText = window.internal
s.layerTreeAsText(document); |
24 } | 24 } |
25 window.addEventListener('load', doTest, false); | 25 window.addEventListener('load', doTest, false); |
26 </script> | 26 </script> |
27 </head> | 27 </head> |
28 <body> | 28 <body> |
29 <div id="caption" style="position: fixed; background: green;"> | 29 <div id="caption" style="position: fixed; background: green;"> |
30 <div class="inner"></div> | 30 <div class="inner"></div> |
31 </div> | 31 </div> |
32 <pre id="layertree"></pre> | 32 <pre id="layertree"></pre> |
33 </body> | 33 </body> |
34 </html> | 34 </html> |
OLD | NEW |