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 height: 200px; | 5 height: 200px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 width: 100px; | 8 width: 100px; |
9 height: 100px; | 9 height: 100px; |
10 background-color: black; | 10 background-color: black; |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 assertNoInterpolation({ | 54 assertNoInterpolation({ |
55 property: 'height', | 55 property: 'height', |
56 from: 'unset', | 56 from: 'unset', |
57 to: '20px', | 57 to: '20px', |
58 }); | 58 }); |
59 | 59 |
60 assertInterpolation({ | 60 assertInterpolation({ |
61 property: 'height', | 61 property: 'height', |
62 from: '0px', | 62 from: '0px', |
63 to: '100px' | 63 to: '100px', |
64 }, [ | 64 }, [ |
65 {at: -0.3, is: '0px'}, // CSS height can't be negative. | 65 {at: -0.3, is: '0px'}, // CSS height can't be negative. |
66 {at: 0, is: '0px'}, | 66 {at: 0, is: '0px'}, |
67 {at: 0.3, is: '30px'}, | 67 {at: 0.3, is: '30px'}, |
68 {at: 0.6, is: '60px'}, | 68 {at: 0.6, is: '60px'}, |
69 {at: 1, is: '100px'}, | 69 {at: 1, is: '100px'}, |
70 {at: 1.5, is: '150px'} | 70 {at: 1.5, is: '150px'} |
71 ]); | 71 ]); |
72 </script> | 72 </script> |
73 </body> | 73 </body> |
OLD | NEW |