14 border:
10px solid black;
15 background-color: rgba(
100,
100,
255,
0.8);
16 -webkit-box-sizing: border-box;
17 -webkit-box-shadow: black
0 4px
4px;
20 #container .masked-px {
21 -webkit-mask-image: url(resources/alpha-gradient.png);
22 -webkit-mask-repeat: repeat;
23 -webkit-mask-size: calc(
50px);
26 #container .masked-percent {
27 -webkit-mask-image: url(resources/alpha-gradient.png);
28 -webkit-mask-repeat: repeat;
29 -webkit-mask-size: calc(
25%);
32 #container .masked-percent-px {
33 -webkit-mask-image: url(resources/alpha-gradient.png);
34 -webkit-mask-repeat: repeat;
35 -webkit-mask-size: calc(
10% +
30px);
38 <p>Testing masks on compositing layers.
</p>
40 <div class=
"masked-px box"></div>
41 <div class=
"masked-percent box"></div>
42 <div class=
"masked-percent-px box"></div>