OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 .composited { | 5 .composited { |
6 -webkit-transform: translateZ(0); | 6 transform: translateZ(0); |
7 } | 7 } |
8 .border { | 8 .border { |
9 border: 2px solid blue; | 9 border: 2px solid blue; |
10 } | 10 } |
11 </style> | 11 </style> |
12 <script> | 12 <script> |
13 var layerText = ''; | 13 var layerText = ''; |
14 | 14 |
15 function layerTreeText(message) { | 15 function layerTreeText(message) { |
16 return message + '\n\n' + window.internals.layerTreeAsText(document) + '\n
'; | 16 return message + '\n\n' + window.internals.layerTreeAsText(document) + '\n
'; |
(...skipping 19 matching lines...) Expand all Loading... |
36 } | 36 } |
37 </script> | 37 </script> |
38 </head> | 38 </head> |
39 | 39 |
40 <!-- The image should have a blue border, and its composited layer.drawsContent
should be true --> | 40 <!-- The image should have a blue border, and its composited layer.drawsContent
should be true --> |
41 <body> | 41 <body> |
42 <img class="composited" onload="load(this)" src="../../fast/images/resources/g
reen-256x256.jpg"> | 42 <img class="composited" onload="load(this)" src="../../fast/images/resources/g
reen-256x256.jpg"> |
43 <pre id="result"></pre> | 43 <pre id="result"></pre> |
44 </body> | 44 </body> |
45 </html> | 45 </html> |
OLD | NEW |