6 transition-duration:
1s;
7 transition-timing-function: linear;
11 transition-property: x;
18 transition-property: y;
24 <script src=
"../animations/resources/animation-test-helpers.js"></script>
25 <script type=
"text/javascript">
27 const expectedValues
= [
28 // [time, element-id, property, expected-value, tolerance]
29 [0.5, 'x', 'x', 150, 20],
30 [0.5, 'y', 'y', 150, 20],
35 document
.getElementById('x').setAttribute('class', 'init final');
36 document
.getElementById('y').setAttribute('class', 'init final');
39 runTransitionTest(expectedValues
, setupTest
);
44 <rect x=
"100" y=
"100" width=
"100" height=
"100" class=
"init" id=
"x"/>
45 <rect x=
"100" y=
"100" width=
"100" height=
"100" class=
"init" id=
"y"/>