OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html lang="en"> | 2 <html lang="en"> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
| 5 body { overflow: hidden; } |
5 #back { | 6 #back { |
6 width: 1000px; | 7 width: 1000px; |
7 height: 600px; | 8 height: 600px; |
8 background-color: green; | 9 background-color: green; |
9 } | 10 } |
10 #front { | 11 #front { |
11 width: 800px; | 12 width: 800px; |
12 height: 400px; | 13 height: 400px; |
13 background-color: red; | 14 background-color: red; |
14 border: 50px solid blue; | 15 border: 50px solid blue; |
15 padding: 50px; | 16 padding: 50px; |
16 -webkit-mask-image: url(resources/dice.png); | 17 -webkit-mask-image: url(resources/dice.png); |
17 mask-source-type: luminance; | 18 mask-source-type: luminance; |
18 -webkit-mask-size: 200px auto; | 19 -webkit-mask-size: 200px auto; |
19 -webkit-mask-repeat: repeat; | 20 -webkit-mask-repeat: repeat; |
20 -webkit-mask-origin: border-box; | 21 -webkit-mask-origin: border-box; |
21 -webkit-mask-clip: border-box; | 22 -webkit-mask-clip: border-box; |
22 } | 23 } |
23 </style> | 24 </style> |
24 </head> | 25 </head> |
25 | 26 |
26 <body> | 27 <body> |
27 <div id="back"> | 28 <div id="back"> |
28 <div id="front" /> | 29 <div id="front" /> |
29 </div> | 30 </div> |
30 </body> | 31 </body> |
31 </html> | 32 </html> |
32 | 33 |
OLD | NEW |