blob: c3a986207c586b52be5e9ff91dc8c633cb8c02b3 [file] [log] [blame]
<!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;
padding: 50px;
-webkit-mask-image: linear-gradient(45deg, black, transparent 100%);
-webkit-mask-source-type: alpha;
-webkit-mask-size: 200px auto;
-webkit-mask-repeat: repeat;
-webkit-mask-origin: border-box;
-webkit-mask-clip: border-box;
}
</style>
</head>
<body>
<div id="back">
<div id="front" />
</div>
</body>
</html>