OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <meta charset="UTF-8"> | |
3 <style> | |
4 .expected { color: green; } | |
5 </style> | |
6 <body> | |
7 <script src="resources/interpolation-test.js"></script> | |
8 <template id="target-template">float</template> | |
9 <script> | |
10 assertInterpolation({ | |
11 method: 'CSS Animations', | |
12 property: 'float', | |
13 from: 'left', | |
14 to: 'right' | |
15 }, [ | |
16 {at: -0.3, is: 'none'}, | |
17 {at: 0, is: 'none'}, | |
18 {at: 0.3, is: 'none'}, | |
19 {at: 0.6, is: 'none'}, | |
20 {at: 1, is: 'none'}, | |
21 {at: 1.5, is: 'none'}, | |
22 ]); | |
23 assertInterpolation({ | |
24 method: 'CSS Transitions', | |
25 property: 'float', | |
26 from: 'left', | |
27 to: 'right' | |
28 }, [ | |
29 {at: -0.3, is: 'right'}, | |
30 {at: 0, is: 'right'}, | |
31 {at: 0.3, is: 'right'}, | |
32 {at: 0.6, is: 'right'}, | |
33 {at: 1, is: 'right'}, | |
34 {at: 1.5, is: 'right'}, | |
35 ]); | |
36 assertInterpolation({ | |
37 method: 'Web Animations', | |
38 property: 'float', | |
39 from: 'left', | |
40 to: 'right' | |
41 }, [ | |
42 {at: -0.3, is: 'left'}, | |
43 {at: 0, is: 'left'}, | |
44 {at: 0.3, is: 'left'}, | |
45 {at: 0.6, is: 'right'}, | |
46 {at: 1, is: 'right'}, | |
47 {at: 1.5, is: 'right'}, | |
48 ]); | |
49 </script> | |
50 </body> | |
OLD | NEW |