OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
3 <style> | 3 <style> |
4 .container { | 4 .container { |
5 display: inline-block; | 5 display: inline-block; |
6 } | 6 } |
7 .parent { | 7 .parent { |
8 cy: 100px; | 8 cy: 100px; |
9 } | 9 } |
10 .target { | 10 .target { |
11 font-size: 16px; | 11 font-size: 16px; |
12 cy: 50px; | 12 cy: 50px; |
13 } | 13 } |
14 .expected { | 14 .expected { |
15 fill: green; | 15 fill: green; |
16 } | 16 } |
17 </style> | 17 </style> |
18 <body> | 18 <body> |
19 <template id="target-template"> | 19 <template id="target-template"> |
20 <svg height="200" width="20"> | 20 <svg height="200" width="20"> |
21 <circle cx="50%" cy="50%" r="10" class="target"> | 21 <circle cx="50%" cy="50%" r="10" class="target"> |
22 </svg> | 22 </svg> |
23 </template> | 23 </template> |
24 <script src="resources/interpolation-test.js"></script> | 24 <script src="resources/interpolation-test.js"></script> |
25 <script> | 25 <script> |
26 assertInterpolation({ | 26 assertInterpolation({ |
27 property: 'cy', | 27 property: 'cy', |
28 from: '', | 28 from: neutralKeyframe, |
29 to: '20px', | 29 to: '20px', |
30 }, [ | 30 }, [ |
31 {at: -0.25, is: '57.5px'}, | 31 {at: -0.25, is: '57.5px'}, |
32 {at: 0, is: '50px'}, | 32 {at: 0, is: '50px'}, |
33 {at: 0.25, is: '42.5px'}, | 33 {at: 0.25, is: '42.5px'}, |
34 {at: 0.5, is: '35px'}, | 34 {at: 0.5, is: '35px'}, |
35 {at: 0.75, is: '27.5px'}, | 35 {at: 0.75, is: '27.5px'}, |
36 {at: 1, is: '20px'}, | 36 {at: 1, is: '20px'}, |
37 {at: 1.25, is: '12.5px'}, | 37 {at: 1.25, is: '12.5px'}, |
38 ]); | 38 ]); |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 {at: -0.25, is: '-15'}, | 126 {at: -0.25, is: '-15'}, |
127 {at: 0, is: '-10'}, | 127 {at: 0, is: '-10'}, |
128 {at: 0.25, is: '-5'}, | 128 {at: 0.25, is: '-5'}, |
129 {at: 0.5, is: '0'}, | 129 {at: 0.5, is: '0'}, |
130 {at: 0.75, is: '5'}, | 130 {at: 0.75, is: '5'}, |
131 {at: 1, is: '10'}, | 131 {at: 1, is: '10'}, |
132 {at: 1.25, is: '15'}, | 132 {at: 1.25, is: '15'}, |
133 ]); | 133 ]); |
134 </script> | 134 </script> |
135 </body> | 135 </body> |
OLD | NEW |