blob: 073ed6ce39dc7a2dbd9edfd47897a1c2a413a10d [file] [log] [blame]
<title>Simple composited masks</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);
-webkit-mask-repeat: no-repeat;
#container .masked2 {
-webkit-mask-image: url(../resources/alpha-gradient.png);
-webkit-mask-repeat: repeat;
-webkit-mask-size: 25%;
<p>Testing masks on compositing layers. Left and right columns should look the same.</p>
<div id="container">
<div class="masked box"></div>
<div class="masked2 box"></div>
<div id="container">
<div class="compositing masked box"></div>
<div class="compositing masked2 box"></div>