blob: f0b8e2ee768752964463239b8e407865ec27f7bd [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: no-repeat;
-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>