| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 .red { | 32 .red { |
| 33 background-color: red; | 33 background-color: red; |
| 34 } | 34 } |
| 35 | 35 |
| 36 .lime { | 36 .lime { |
| 37 background-color: lime; | 37 background-color: lime; |
| 38 } | 38 } |
| 39 | 39 |
| 40 .composited { | 40 .composited { |
| 41 -webkit-transform: translatez(0); | 41 transform: translatez(0); |
| 42 } | 42 } |
| 43 | 43 |
| 44 .scrollable { | 44 .scrollable { |
| 45 border: solid black 1px; | 45 border: solid black 1px; |
| 46 overflow: scroll; | 46 overflow: scroll; |
| 47 } | 47 } |
| 48 </style> | 48 </style> |
| 49 | 49 |
| 50 <script type="text/javascript"> | 50 <script type="text/javascript"> |
| 51 if (window.internals) | 51 if (window.internals) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 66 should still be composited because one of its ancestors is scrolling.</p> | 66 should still be composited because one of its ancestors is scrolling.</p> |
| 67 <pre id="layertree"></pre> | 67 <pre id="layertree"></pre> |
| 68 | 68 |
| 69 <div class="scrollable bigBox"> | 69 <div class="scrollable bigBox"> |
| 70 <div style="height: 800px;"></div> | 70 <div style="height: 800px;"></div> |
| 71 <div class="fixed lime box"></div> | 71 <div class="fixed lime box"></div> |
| 72 </div> | 72 </div> |
| 73 </body> | 73 </body> |
| 74 </html> | 74 </html> |
| 75 | 75 |
| OLD | NEW |