50 lines
1.1 KiB
HTML
50 lines
1.1 KiB
HTML
<!DOCTYPE>
|
|
|
|
<html>
|
|
<head>
|
|
<title>Multiple mask images</title>
|
|
<style type="text/css" media="screen">
|
|
#container {
|
|
height: 560px;
|
|
width: 260px;
|
|
border: 1px 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;
|
|
}
|
|
|
|
.compositing {
|
|
-webkit-transform: translateZ(0);
|
|
}
|
|
|
|
#container .masked {
|
|
-webkit-mask-image: url(../resources/alpha-gradient.png), url(../resources/alpha-gradient.png);
|
|
-webkit-mask-repeat: no-repeat;
|
|
-webkit-mask-position: 0 0, 100px 100px;
|
|
-webkit-mask-size: 50%;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<p>Testing masks on compositing layers. Left and right columns should look the same.</p>
|
|
<div id="container">
|
|
<div class="masked box"></div>
|
|
</div>
|
|
|
|
<div id="container">
|
|
<div class="compositing masked box"></div>
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|