| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 .box { | 5 .box { |
| 6 position: absolute; | 6 position: absolute; |
| 7 width: 100px; | 7 width: 100px; |
| 8 height: 100px; | 8 height: 100px; |
| 9 margin: 10px; | 9 margin: 10px; |
| 10 background-color: green; | 10 background-color: green; |
| 11 } | 11 } |
| 12 | 12 |
| 13 .test { | 13 .test { |
| 14 -webkit-mask-image: -webkit-canvas(viewport-mask); | 14 -webkit-mask-image: -webkit-canvas(viewport-mask); |
| 15 -webkit-mask-position: 50% 50%; | 15 -webkit-mask-position: 50% 50%; |
| 16 } | 16 } |
| 17 | 17 |
| 18 .composited { | 18 .composited { |
| 19 -webkit-transform: translateZ(0); | 19 transform: translateZ(0); |
| 20 } | 20 } |
| 21 | 21 |
| 22 .indicator { | 22 .indicator { |
| 23 background-color: red; | 23 background-color: red; |
| 24 } | 24 } |
| 25 | 25 |
| 26 .outlined { | 26 .outlined { |
| 27 outline: 40px solid transparent; | 27 outline: 40px solid transparent; |
| 28 } | 28 } |
| 29 </style> | 29 </style> |
| (...skipping 17 matching lines...) Expand all Loading... |
| 47 <!-- You should see two green boxes side by side, and no red. --> | 47 <!-- You should see two green boxes side by side, and no red. --> |
| 48 <div class="indicator box" style="left: 10px;"></div> | 48 <div class="indicator box" style="left: 10px;"></div> |
| 49 <div class="indicator box" style="left: 120px;"></div> | 49 <div class="indicator box" style="left: 120px;"></div> |
| 50 | 50 |
| 51 <div class="test box" style="left: 10px;"></div> | 51 <div class="test box" style="left: 10px;"></div> |
| 52 <div class="composited test box" style="left: 120px"></div> | 52 <div class="composited test box" style="left: 120px"></div> |
| 53 | 53 |
| 54 <div class="outlined"></div> | 54 <div class="outlined"></div> |
| 55 </body> | 55 </body> |
| 56 </html> | 56 </html> |
| OLD | NEW |