| <!DOCTYPE html> |
| <html lang="en"> |
| <head> |
| <style> |
| #back { |
| width: 1000px; |
| height: 600px; |
| background-color: green; |
| } |
| #front { |
| width: 800px; |
| height: 400px; |
| background-color: red; |
| border: 50px solid blue; |
| /* The padding and values differ here from the test case due |
| to sub-pixel rounding differences in the way the background |
| image phases are calculated in the repeat vs round cases. */ |
| padding: 50px 49px; |
| -webkit-mask-image: url(resources/circle.png); |
| -webkit-mask-size: 72px 40px; |
| -webkit-mask-repeat: repeat; |
| -webkit-mask-origin: content-box; |
| -webkit-mask-clip: content-box; |
| } |
| </style> |
| </head> |
| |
| <body> |
| <div id="back"> |
| <div id="front" /> |
| </div> |
| </body> |
| </html> |
| |