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 #back { | 5 #back { |
6 width: 1000px; | 6 width: 1000px; |
7 height: 600px; | 7 height: 600px; |
8 background-color: green; | 8 background-color: green; |
9 } | 9 } |
10 #front { | 10 #front { |
11 width: 800px; | 11 width: 800px; |
12 height: 400px; | 12 height: 400px; |
13 background-color: red; | 13 background-color: red; |
14 border: 50px solid blue; | 14 border: 50px solid blue; |
15 padding: 50px; | 15 padding: 50px; |
16 -webkit-mask-image: url(resources/circle.png); | 16 -webkit-mask-image: url(resources/circle.png); |
17 -webkit-mask-size: 100px 93px; | 17 -webkit-mask-size: 93px 87px; |
18 -webkit-mask-repeat: round; | 18 -webkit-mask-repeat: round; |
19 -webkit-mask-origin: padding-box; | 19 -webkit-mask-origin: padding-box; |
20 -webkit-mask-clip: padding-box; | 20 -webkit-mask-clip: padding-box; |
21 } | 21 } |
22 </style> | 22 </style> |
23 </head> | 23 </head> |
24 | 24 |
25 <body> | 25 <body> |
26 <div id="back"> | 26 <div id="back"> |
27 <div id="front" /> | 27 <div id="front" /> |
28 </div> | 28 </div> |
29 </body> | 29 </body> |
30 </html> | 30 </html> |
31 | 31 |
OLD | NEW |