| 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 </head> | 39 </head> |
| 40 | 40 |
| 41 <body class="unscrollable"> | 41 <body class="unscrollable"> |
| 42 <div style="height: 4000px"> | 42 <div style="height: 4000px"> |
| 43 <!-- This iframe should have no additional layers, because the body is unscr
ollable and there is | 43 <!-- This iframe should have no additional layers, because the body is unscr
ollable and there is |
| 44 no need to composite the green fixed-position layer. --> | 44 no need to composite the green fixed-position layer. --> |
| 45 <pre id="layertree"></pre> | 45 <pre id="layertree"></pre> |
| 46 </div> | 46 </div> |
| 47 | 47 |
| 48 <!-- This should not be composited --> | 48 <!-- This should not be composited --> |
| 49 <div class="fixed lime box"></div> | 49 <div class="fixed lime box"></div> |
| 50 </body> | 50 </body> |
| 51 </html> | 51 </html> |
| 52 | 52 |
| OLD | NEW |