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 border-radius: 30px; | 5 border-radius: 30px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 width: 80px; | 8 width: 80px; |
9 height: 80px; | 9 height: 80px; |
10 display: inline-block; | 10 display: inline-block; |
11 background-color: black; | 11 background-color: black; |
12 margin-right: 5px; | 12 margin-right: 5px; |
13 border-radius: 10px; | 13 border-radius: 10px; |
14 } | 14 } |
15 .expected { | 15 .expected { |
16 background-color: green; | 16 background-color: green; |
17 margin-right: 15px; | 17 margin-right: 15px; |
18 } | 18 } |
19 </style> | 19 </style> |
20 <body> | 20 <body> |
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: 'border-radius', | 24 property: 'border-radius', |
25 from: '', | 25 from: neutralKeyframe, |
26 to: '20px', | 26 to: '20px', |
27 }, [ | 27 }, [ |
28 {at: -0.3, is: '7px'}, | 28 {at: -0.3, is: '7px'}, |
29 {at: 0, is: '10px'}, | 29 {at: 0, is: '10px'}, |
30 {at: 0.3, is: '13px'}, | 30 {at: 0.3, is: '13px'}, |
31 {at: 0.6, is: '16px'}, | 31 {at: 0.6, is: '16px'}, |
32 {at: 1, is: '20px'}, | 32 {at: 1, is: '20px'}, |
33 {at: 1.5, is: '25px'}, | 33 {at: 1.5, is: '25px'}, |
34 ]); | 34 ]); |
35 assertInterpolation({ | 35 assertInterpolation({ |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // with different (but equivalent) calc expressions. | 89 // with different (but equivalent) calc expressions. |
90 {at: -0.3, is: 'calc(13px + -30%)'}, | 90 {at: -0.3, is: 'calc(13px + -30%)'}, |
91 {at: 0, is: '10px'}, | 91 {at: 0, is: '10px'}, |
92 {at: 0.3, is: 'calc(7px + 30%)'}, | 92 {at: 0.3, is: 'calc(7px + 30%)'}, |
93 {at: 0.6, is: 'calc(4px + 60%)'}, | 93 {at: 0.6, is: 'calc(4px + 60%)'}, |
94 {at: 1, is: '100%'}, | 94 {at: 1, is: '100%'}, |
95 {at: 1.5, is: 'calc(-5px + 150%)'}, | 95 {at: 1.5, is: 'calc(-5px + 150%)'}, |
96 ]); | 96 ]); |
97 </script> | 97 </script> |
98 </body> | 98 </body> |
OLD | NEW |