blob: c0909452e05d4113818f6b31f6dac88ecf529ca7 [file] [log] [blame]
<!DOCTYPE html>
<style>
#container {
height: 760px;
width: 260px;
border: solid black;
display: inline-block;
}
.box {
position: relative;
width: 200px;
height: 200px;
margin: 30px;
border: 10px solid black;
background-color: rgba(100, 100, 255, 0.8);
-webkit-box-sizing: border-box;
-webkit-box-shadow: black 0 4px 4px;
}
#container .masked {
-webkit-mask-image: url(resources/alpha-gradient.png);
-webkit-mask-repeat: repeat;
-webkit-mask-size: 50px;
}
</style>
<p>Testing masks on compositing layers.</p>
<div id="container">
<div class="masked box"></div>
<div class="masked box"></div>
<div class="masked box"></div>
</div>