5 <title>mask-position and size transitions
</title>
6 <style type=
"text/css" media=
"screen">
11 background-color: gray;
12 -webkit-mask-repeat: no-repeat;
13 -webkit-transition-duration:
1s;
14 -webkit-transition-timing-function: linear;
15 -webkit-transition-property: -webkit-mask-position;
19 -webkit-mask-image: url('../fast/backgrounds/repeat/resources/gradient.gif'), url('../fast/backgrounds/repeat/resources/gradient.gif');
20 -webkit-mask-position:
0 0,
0 80px;
24 -webkit-mask-position:
80px
80px,
80px
0;
27 /* Mismatched layers */
29 -webkit-mask-image: url('../fast/backgrounds/repeat/resources/gradient.gif'), url('../fast/backgrounds/repeat/resources/gradient.gif');
30 -webkit-mask-position:
0 0,
0 80px;
34 -webkit-mask-image: url('../fast/backgrounds/repeat/resources/gradient.gif');
35 -webkit-mask-position:
80px
80px;
39 -webkit-mask-image: url('../fast/backgrounds/repeat/resources/gradient.gif');
40 -webkit-mask-position:
80px
80px;
44 -webkit-mask-image: url('../fast/backgrounds/repeat/resources/gradient.gif'), url('../fast/backgrounds/repeat/resources/gradient.gif');
45 -webkit-mask-position:
0 0,
0 80px;
49 <script src=
"transition-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
50 <script type=
"text/javascript" charset=
"utf-8">
52 const expectedValues = [
53 // [time, element-id, property, expected-value, tolerance]
54 [
0.5, 'box', '-webkit-mask-position', [
40,
40],
5],
55 [
0.5, 'box2', '-webkit-mask-position', [
40,
40],
5],
56 [
0.5, 'box3', '-webkit-mask-position', [
40,
40],
5],
61 document.getElementById('box').className = 'box final';
62 document.getElementById('box2').className = 'box final';
63 document.getElementById('box3').className = 'box final';
66 runTransitionTest(expectedValues, setupTest, true);
72 <div id=
"box" class=
"box"></div>
73 <div id=
"box2" class=
"box"></div>
74 <div id=
"box3" class=
"box"></div>