OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style> | 5 <style> |
6 .fixed { | 6 .fixed { |
7 position: fixed; | 7 position: fixed; |
8 z-index: 1; | 8 z-index: 1; |
9 } | 9 } |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 .red { | 27 .red { |
28 background-color: red; | 28 background-color: red; |
29 } | 29 } |
30 | 30 |
31 .lime { | 31 .lime { |
32 background-color: lime; | 32 background-color: lime; |
33 } | 33 } |
34 | 34 |
35 .composited { | 35 .composited { |
36 -webkit-transform: translatez(0); | 36 transform: translatez(0); |
37 } | 37 } |
38 </style> | 38 </style> |
39 | 39 |
40 <script type="text/javascript"> | 40 <script type="text/javascript"> |
41 if (window.internals) { | 41 if (window.internals) { |
42 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); | 42 window.internals.settings.setPreferCompositingToLCDTextEnabled(true); |
43 } | 43 } |
44 | 44 |
45 if (window.testRunner) { | 45 if (window.testRunner) { |
46 testRunner.dumpAsText(); | 46 testRunner.dumpAsText(); |
(...skipping 10 matching lines...) Expand all Loading... |
57 <pre id="layertree"></pre> | 57 <pre id="layertree"></pre> |
58 </div> | 58 </div> |
59 | 59 |
60 <!-- This should not be promoted to a composited layer, because the body is | 60 <!-- This should not be promoted to a composited layer, because the body is |
61 unscrollable and there is no need to composite the fixed-position layer. | 61 unscrollable and there is no need to composite the fixed-position layer. |
62 --> | 62 --> |
63 <div class="fixed lime box"></div> | 63 <div class="fixed lime box"></div> |
64 </body> | 64 </body> |
65 </html> | 65 </html> |
66 | 66 |
OLD | NEW |