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 margin: 10px; | 5 margin: 10px; |
6 border: solid; | 6 border: solid; |
7 display: inline-block; | 7 display: inline-block; |
8 } | 8 } |
9 .target { | 9 .target { |
10 width: 40px; | 10 width: 40px; |
(...skipping 10 matching lines...) Expand all Loading... |
21 <body> | 21 <body> |
22 <template id="target-template"> | 22 <template id="target-template"> |
23 <div> | 23 <div> |
24 <div class="target"></div> | 24 <div class="target"></div> |
25 </div> | 25 </div> |
26 </template> | 26 </template> |
27 <script src="resources/interpolation-test.js"></script> | 27 <script src="resources/interpolation-test.js"></script> |
28 <script> | 28 <script> |
29 assertInterpolation({ | 29 assertInterpolation({ |
30 property: 'margin', | 30 property: 'margin', |
31 from: '', | 31 from: neutralKeyframe, |
32 to: '20px', | 32 to: '20px', |
33 }, [ | 33 }, [ |
34 {at: -0.3, is: '33px'}, | 34 {at: -0.3, is: '33px'}, |
35 {at: 0, is: '30px'}, | 35 {at: 0, is: '30px'}, |
36 {at: 0.3, is: '27px'}, | 36 {at: 0.3, is: '27px'}, |
37 {at: 0.6, is: '24px'}, | 37 {at: 0.6, is: '24px'}, |
38 {at: 1, is: '20px'}, | 38 {at: 1, is: '20px'}, |
39 {at: 1.5, is: '15px'}, | 39 {at: 1.5, is: '15px'}, |
40 ]); | 40 ]); |
41 | 41 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 }, [ | 85 }, [ |
86 {at: -0.3, is: '-3px'}, | 86 {at: -0.3, is: '-3px'}, |
87 {at: 0, is: '0px'}, | 87 {at: 0, is: '0px'}, |
88 {at: 0.3, is: '3px'}, | 88 {at: 0.3, is: '3px'}, |
89 {at: 0.6, is: '6px'}, | 89 {at: 0.6, is: '6px'}, |
90 {at: 1, is: '10px'}, | 90 {at: 1, is: '10px'}, |
91 {at: 1.5, is: '15px'} | 91 {at: 1.5, is: '15px'} |
92 ]); | 92 ]); |
93 </script> | 93 </script> |
94 </body> | 94 </body> |
OLD | NEW |