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 line-height: 30px; | 5 line-height: 30px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 display: inline-block; | 8 display: inline-block; |
9 font: 20px sans-serif; | 9 font: 20px sans-serif; |
10 line-height: 10px; | 10 line-height: 10px; |
11 } | 11 } |
12 .expected { | 12 .expected { |
13 color: green; | 13 color: green; |
14 margin-right: 30px; | 14 margin-right: 30px; |
15 } | 15 } |
16 </style> | 16 </style> |
17 <body> | 17 <body> |
18 <template id="target-template"> | 18 <template id="target-template"> |
19 <p> | 19 <p> |
20 v<br />v | 20 v<br />v |
21 </p> | 21 </p> |
22 </template> | 22 </template> |
23 <script src="resources/interpolation-test.js"></script> | 23 <script src="resources/interpolation-test.js"></script> |
24 <script> | 24 <script> |
25 assertInterpolation({ | 25 assertInterpolation({ |
26 property: 'line-height', | 26 property: 'line-height', |
27 from: '', | 27 from: neutralKeyframe, |
28 to: '20px', | 28 to: '20px', |
29 }, [ | 29 }, [ |
30 {at: -1, is: '0px'}, | 30 {at: -1, is: '0px'}, |
31 {at: -0.3, is: '7px'}, | 31 {at: -0.3, is: '7px'}, |
32 {at: 0, is: '10px'}, | 32 {at: 0, is: '10px'}, |
33 {at: 0.3, is: '13px'}, | 33 {at: 0.3, is: '13px'}, |
34 {at: 0.6, is: '16px'}, | 34 {at: 0.6, is: '16px'}, |
35 {at: 1, is: '20px'}, | 35 {at: 1, is: '20px'}, |
36 {at: 1.5, is: '25px'}, | 36 {at: 1.5, is: '25px'}, |
37 ]); | 37 ]); |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 {at: 1.5, is: '0px'}, // line-height must not be less than 0. | 185 {at: 1.5, is: '0px'}, // line-height must not be less than 0. |
186 ]); | 186 ]); |
187 </script> | 187 </script> |
188 </body> | 188 </body> |
189 | 189 |
190 | 190 |
191 | 191 |
192 | 192 |
193 | 193 |
194 | 194 |
OLD | NEW |