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-width: 30px; | 5 border-width: 30px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 width: 50px; | 8 width: 50px; |
9 height: 50px; | 9 height: 50px; |
10 background-color: black; | 10 background-color: black; |
11 display: inline-block; | 11 display: inline-block; |
12 border: 2px solid orange; | 12 border: 2px solid orange; |
13 margin: 18px; | 13 margin: 18px; |
14 border-width: 10px; | 14 border-width: 10px; |
15 } | 15 } |
16 .expected { | 16 .expected { |
17 background-color: green; | 17 background-color: green; |
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-width', | 24 property: 'border-width', |
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 | 35 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 {at: -2, is: '35px'}, | 135 {at: -2, is: '35px'}, |
136 {at: -0.3, is: '18px'}, | 136 {at: -0.3, is: '18px'}, |
137 {at: 0, is: '15px'}, | 137 {at: 0, is: '15px'}, |
138 {at: 0.3, is: '12px'}, | 138 {at: 0.3, is: '12px'}, |
139 {at: 0.6, is: '9px'}, | 139 {at: 0.6, is: '9px'}, |
140 {at: 1, is: '5px'}, | 140 {at: 1, is: '5px'}, |
141 {at: 1.5, is: '0px'} | 141 {at: 1.5, is: '0px'} |
142 ]); | 142 ]); |
143 </script> | 143 </script> |
144 </body> | 144 </body> |
OLD | NEW |