OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
3 <style> | 3 <style> |
4 .parent { | 4 .parent { |
5 cx: 100px; | 5 cx: 100px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 font-size: 16px; | 8 font-size: 16px; |
9 cx: 50px; | 9 cx: 50px; |
10 } | 10 } |
11 .expected { | 11 .expected { |
12 fill: green; | 12 fill: green; |
13 } | 13 } |
14 </style> | 14 </style> |
15 <body> | 15 <body> |
16 <template id="target-template"> | 16 <template id="target-template"> |
17 <svg height="20" width="400"> | 17 <svg height="20" width="400"> |
18 <circle cx="50%" cy="50%" r="10" class="target"> | 18 <circle cx="50%" cy="50%" r="10" class="target"> |
19 </svg> | 19 </svg> |
20 </template> | 20 </template> |
21 <script src="resources/interpolation-test.js"></script> | 21 <script src="resources/interpolation-test.js"></script> |
22 <script> | 22 <script> |
23 assertInterpolation({ | 23 assertInterpolation({ |
24 property: 'cx', | 24 property: 'cx', |
25 from: '', | 25 from: neutralKeyframe, |
26 to: '20px', | 26 to: '20px', |
27 }, [ | 27 }, [ |
28 {at: -0.25, is: '57.5px'}, | 28 {at: -0.25, is: '57.5px'}, |
29 {at: 0, is: '50px'}, | 29 {at: 0, is: '50px'}, |
30 {at: 0.25, is: '42.5px'}, | 30 {at: 0.25, is: '42.5px'}, |
31 {at: 0.5, is: '35px'}, | 31 {at: 0.5, is: '35px'}, |
32 {at: 0.75, is: '27.5px'}, | 32 {at: 0.75, is: '27.5px'}, |
33 {at: 1, is: '20px'}, | 33 {at: 1, is: '20px'}, |
34 {at: 1.25, is: '12.5px'}, | 34 {at: 1.25, is: '12.5px'}, |
35 ]); | 35 ]); |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 {at: -0.25, is: '-15'}, | 112 {at: -0.25, is: '-15'}, |
113 {at: 0, is: '-10'}, | 113 {at: 0, is: '-10'}, |
114 {at: 0.25, is: '-5'}, | 114 {at: 0.25, is: '-5'}, |
115 {at: 0.5, is: '0'}, | 115 {at: 0.5, is: '0'}, |
116 {at: 0.75, is: '5'}, | 116 {at: 0.75, is: '5'}, |
117 {at: 1, is: '10'}, | 117 {at: 1, is: '10'}, |
118 {at: 1.25, is: '15'}, | 118 {at: 1.25, is: '15'}, |
119 ]); | 119 ]); |
120 </script> | 120 </script> |
121 </body> | 121 </body> |
OLD | NEW |