5 <title>mask transitions
</title>
6 <style type=
"text/css" media=
"screen">
11 background-color: blue;
12 -webkit-mask: url('../fast/backgrounds/resources/mask-left.png') no-repeat
0 0;
13 -webkit-mask-size:
100px
100px;
14 -webkit-transition-duration:
1s;
15 -webkit-transition-timing-function: linear;
19 -webkit-transition-property: -webkit-mask;
23 -webkit-mask-position:
20px
20px;
27 -webkit-transition-property: -webkit-mask-size;
31 -webkit-mask-size:
200px
200px;
35 <script src=
"transition-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
36 <script type=
"text/javascript" charset=
"utf-8">
38 const expectedValues = [
39 // [time, element-id, property, expected-value, tolerance]
40 [
0.5, 'box', '-webkit-mask-position', [
10,
10],
2],
41 [
0.5, 'box2', '-webkit-mask-size', [
150,
150],
10],
46 document.getElementById('box').className = 'box final';
47 document.getElementById('box2').className = 'box final';
50 // We can't use the pause API because it only works for individual properties, and
51 // -webkit-mask-position is a compound property.
52 runTransitionTest(expectedValues, setupTest, false);
58 <div id=
"box" class=
"box"></div>
59 <div id=
"box2" class=
"box"></div>