blob: 2dbd84195a69181c97e942b139cf71f955ccf074 [file] [log] [blame]
<!DOCTYPE html>
<html lang="en">
<head>
<style>
#back {
width: 600px;
height: 500px;
background-color: green;
}
#front {
width: 400px;
height: 300px;
background-color: red;
border: 50px solid blue;
padding: 50px;
-webkit-mask-image: url("resources/circle.png");
-webkit-mask-size: 400px 300px;
-webkit-mask-repeat: space;
-webkit-mask-origin: padding-box;
-webkit-mask-position: 100px 100px;
-webkit-mask-clip: padding-box;
}
</style>
</head>
<body>
<div id="back">
<div id="front" />
</div>
</body>
</html>