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 width: 100px; | 5 width: 100px; |
6 overflow: visible; | 6 overflow: visible; |
7 } | 7 } |
8 .target { | 8 .target { |
9 background-color: black; | 9 background-color: black; |
10 width: 10px; | 10 width: 10px; |
11 height: 10px; | 11 height: 10px; |
12 } | 12 } |
13 .expected { | 13 .expected { |
14 background-color: green; | 14 background-color: green; |
15 } | 15 } |
16 </style> | 16 </style> |
17 <body> | 17 <body> |
18 <template id="target-template"> | 18 <template id="target-template"> |
19 <div class="container"> | 19 <div class="container"> |
20 <div class="target"></div> | 20 <div class="target"></div> |
21 </div> | 21 </div> |
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: 'width', | 26 property: 'width', |
27 from: '', | 27 from: neutralKeyframe, |
28 to: '40px', | 28 to: '40px', |
29 }, [ | 29 }, [ |
30 {at: -0.3, is: '1px'}, | 30 {at: -0.3, is: '1px'}, |
31 {at: 0, is: '10px'}, | 31 {at: 0, is: '10px'}, |
32 {at: 0.3, is: '19px'}, | 32 {at: 0.3, is: '19px'}, |
33 {at: 0.6, is: '28px'}, | 33 {at: 0.6, is: '28px'}, |
34 {at: 1, is: '40px'}, | 34 {at: 1, is: '40px'}, |
35 {at: 1.5, is: '55px'}, | 35 {at: 1.5, is: '55px'}, |
36 ]); | 36 ]); |
37 | 37 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 }, [ | 80 }, [ |
81 {at: -0.3, is: '0px'}, // CSS width can't be negative. | 81 {at: -0.3, is: '0px'}, // CSS width can't be negative. |
82 {at: 0, is: '10px'}, | 82 {at: 0, is: '10px'}, |
83 {at: 0.3, is: '37px'}, | 83 {at: 0.3, is: '37px'}, |
84 {at: 0.6, is: '64px'}, | 84 {at: 0.6, is: '64px'}, |
85 {at: 1, is: '100px'}, | 85 {at: 1, is: '100px'}, |
86 {at: 1.5, is: '145px'} | 86 {at: 1.5, is: '145px'} |
87 ]); | 87 ]); |
88 </script> | 88 </script> |
89 </body> | 89 </body> |
OLD | NEW |