| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <style> | 5 <style> |
| 6 .box { | 6 .box { |
| 7 position: absolute; | 7 position: absolute; |
| 8 top: 20px; | 8 top: 20px; |
| 9 left: 20px; | 9 left: 20px; |
| 10 height: 100px; | 10 height: 100px; |
| 11 width: 100px; | 11 width: 100px; |
| 12 background-color: red; | 12 background-color: red; |
| 13 } | 13 } |
| 14 | 14 |
| 15 .composited { | 15 .composited { |
| 16 -webkit-transform: translateZ(0); | 16 transform: translateZ(0); |
| 17 background-color: green; | 17 background-color: green; |
| 18 outline: 10px solid transparent; /* inflate compositing layer bounds */ | 18 outline: 10px solid transparent; /* inflate compositing layer bounds */ |
| 19 } | 19 } |
| 20 | 20 |
| 21 .box > .box { | 21 .box > .box { |
| 22 top: 50px; | 22 top: 50px; |
| 23 left: 50px; | 23 left: 50px; |
| 24 width: 200px; | 24 width: 200px; |
| 25 background-color: rgba(255, 0, 0, 0.6); | 25 background-color: rgba(255, 0, 0, 0.6); |
| 26 } | 26 } |
| (...skipping 27 matching lines...) Expand all Loading... |
| 54 <body> | 54 <body> |
| 55 <div class="composited box"> | 55 <div class="composited box"> |
| 56 <div class="composited box"></div> | 56 <div class="composited box"></div> |
| 57 </div> | 57 </div> |
| 58 | 58 |
| 59 <div id="indicator"></div> | 59 <div id="indicator"></div> |
| 60 | 60 |
| 61 <pre id="layertree"></pre> | 61 <pre id="layertree"></pre> |
| 62 </body> | 62 </body> |
| 63 </html> | 63 </html> |
| OLD | NEW |