6 transition-duration:
1s;
7 transition-timing-function: linear;
11 transition-property: x;
18 transition-property: y;
25 transition-property: r;
32 transition-property: rx;
39 transition-property: ry;
46 transition-property: cx;
53 transition-property: cy;
59 <script src=
"../animations/resources/animation-test-helpers.js"></script>
60 <script type=
"text/javascript">
62 const expectedValues
= [
63 // [time, element-id, property, expected-value, tolerance]
64 [0.5, 'x', 'x', 150, 20],
65 [0.5, 'y', 'y', 150, 20],
66 [0.5, 'sx', 'x', 150, 20],
67 [0.5, 'sy', 'y', 150, 20],
68 [0.5, 'mx', 'x', 150, 20],
69 [0.5, 'my', 'y', 150, 20],
70 [0.5, 'ix', 'x', 150, 20],
71 [0.5, 'iy', 'y', 150, 20],
72 [0.5, 'fx', 'x', 150, 20],
73 [0.5, 'fy', 'y', 150, 20],
74 [0.5, 'rx', 'rx', 150, 20],
75 [0.5, 'ry', 'ry', 150, 20],
76 [0.5, 'erx', 'rx', 150, 20],
77 [0.5, 'ery', 'ry', 150, 20],
78 [0.5, 'cr', 'r', 150, 20],
79 [0.5, 'cx', 'cx', 150, 20],
80 [0.5, 'cy', 'cy', 150, 20],
84 for (var i
= 0; i
< expectedValues
.length
; i
++)
85 document
.getElementById(expectedValues
[i
][1]).classList
.add("final");
88 runTransitionTest(expectedValues
, setupTest
);
93 <rect x=
"100" y=
"100" width=
"100" height=
"100" class=
"init x" id=
"x"/>
94 <rect x=
"100" y=
"100" width=
"100" height=
"100" class=
"init y" id=
"y"/>
95 <svg id=
"sx" class=
"init x" x=
"100"/>
96 <svg id=
"sy" class=
"init y" y=
"100"/>
97 <mask id=
"mx" class=
"init x" x=
"100"/>
98 <mask id=
"my" class=
"init y" y=
"100"/>
99 <image id=
"ix" class=
"init x" x=
"100" y=
"100" width=
"100" height=
"100"/>
100 <image id=
"iy" class=
"init y" x=
"100" y=
"100" width=
"100" height=
"100"/>
101 <foreignObject id=
"fx" class=
"init x" x=
"100" y=
"100" width=
"100" height=
"100"/>
102 <foreignObject id=
"fy" class=
"init y" x=
"100" y=
"100" width=
"100" height=
"100"/>
103 <rect x=
"100" y=
"100" width=
"100" height=
"100" rx=
"100" ry=
"100" class=
"init rx" id=
"rx"/>
104 <rect x=
"100" y=
"100" width=
"100" height=
"100" rx=
"100" ry=
"100" class=
"init ry" id=
"ry"/>
105 <ellipse class=
"init rx" rx=
"100" ry=
"100" id=
"erx"/>
106 <ellipse class=
"init ry" rx=
"100" ry=
"100" id=
"ery"/>
107 <circle class=
"init r" cx=
"100" cy=
"100" r=
"100" id=
"cr"/>
108 <circle class=
"init cx" cx=
"100" cy=
"100" r=
"100" id=
"cx"/>
109 <circle class=
"init cy" cx=
"100" cy=
"100" r=
"100" id=
"cy"/>