| OLD | NEW |
| 1 <!DOCTYPE> | 1 <!DOCTYPE> |
| 2 | 2 |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <title>Multiple mask images</title> | 5 <title>Multiple mask images</title> |
| 6 <style type="text/css" media="screen"> | 6 <style type="text/css" media="screen"> |
| 7 #container { | 7 #container { |
| 8 height: 560px; | 8 height: 560px; |
| 9 width: 260px; | 9 width: 260px; |
| 10 border: 1px solid black; | 10 border: 1px solid black; |
| 11 display: inline-block; | 11 display: inline-block; |
| 12 } | 12 } |
| 13 .box { | 13 .box { |
| 14 position: relative; | 14 position: relative; |
| 15 width: 200px; | 15 width: 200px; |
| 16 height: 200px; | 16 height: 200px; |
| 17 margin: 30px; | 17 margin: 30px; |
| 18 border: 10px solid black; | 18 border: 10px solid black; |
| 19 background-color:rgba(100, 100, 255, 0.8); | 19 background-color:rgba(100, 100, 255, 0.8); |
| 20 -webkit-box-sizing: border-box; | 20 -webkit-box-sizing: border-box; |
| 21 -webkit-box-shadow: black 0 4px 4px; | 21 -webkit-box-shadow: black 0 4px 4px; |
| 22 } | 22 } |
| 23 | 23 |
| 24 .compositing { | 24 .compositing { |
| 25 -webkit-transform: translateZ(0); | 25 transform: translateZ(0); |
| 26 } | 26 } |
| 27 | 27 |
| 28 #container .masked { | 28 #container .masked { |
| 29 -webkit-mask-image: url(../resources/alpha-gradient.png), url(../resourc
es/alpha-gradient.png); | 29 -webkit-mask-image: url(../resources/alpha-gradient.png), url(../resourc
es/alpha-gradient.png); |
| 30 -webkit-mask-repeat: no-repeat; | 30 -webkit-mask-repeat: no-repeat; |
| 31 -webkit-mask-position: 0 0, 100px 100px; | 31 -webkit-mask-position: 0 0, 100px 100px; |
| 32 -webkit-mask-size: 50%; | 32 -webkit-mask-size: 50%; |
| 33 } | 33 } |
| 34 | 34 |
| 35 </style> | 35 </style> |
| 36 </head> | 36 </head> |
| 37 <body> | 37 <body> |
| 38 | 38 |
| 39 <p>Testing masks on compositing layers. Left and right columns should look the
same.</p> | 39 <p>Testing masks on compositing layers. Left and right columns should look the
same.</p> |
| 40 <div id="container"> | 40 <div id="container"> |
| 41 <div class="masked box"></div> | 41 <div class="masked box"></div> |
| 42 </div> | 42 </div> |
| 43 | 43 |
| 44 <div id="container"> | 44 <div id="container"> |
| 45 <div class="compositing masked box"></div> | 45 <div class="compositing masked box"></div> |
| 46 </div> | 46 </div> |
| 47 | 47 |
| 48 </body> | 48 </body> |
| 49 </html> | 49 </html> |
| OLD | NEW |