| 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; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 | 56 |
| 57 assertNoInterpolation({ | 57 assertNoInterpolation({ |
| 58 property: 'width', | 58 property: 'width', |
| 59 from: 'unset', | 59 from: 'unset', |
| 60 to: '40px', | 60 to: '40px', |
| 61 }); | 61 }); |
| 62 | 62 |
| 63 assertInterpolation({ | 63 assertInterpolation({ |
| 64 property: 'width', | 64 property: 'width', |
| 65 from: '0px', | 65 from: '0px', |
| 66 to: '100px' | 66 to: '100px', |
| 67 }, [ | 67 }, [ |
| 68 {at: -0.3, is: '0px'}, // CSS width can't be negative. | 68 {at: -0.3, is: '0px'}, // CSS width can't be negative. |
| 69 {at: 0, is: '0px'}, | 69 {at: 0, is: '0px'}, |
| 70 {at: 0.3, is: '30px'}, | 70 {at: 0.3, is: '30px'}, |
| 71 {at: 0.6, is: '60px'}, | 71 {at: 0.6, is: '60px'}, |
| 72 {at: 1, is: '100px'}, | 72 {at: 1, is: '100px'}, |
| 73 {at: 1.5, is: '150px'} | 73 {at: 1.5, is: '150px'} |
| 74 ]); | 74 ]); |
| 75 |
| 75 assertInterpolation({ | 76 assertInterpolation({ |
| 76 property: 'width', | 77 property: 'width', |
| 77 from: '10px', | 78 from: '10px', |
| 78 to: '100%' | 79 to: '100%' |
| 79 }, [ | 80 }, [ |
| 80 {at: -0.3, is: '0px'}, // CSS width can't be negative. | 81 {at: -0.3, is: '0px'}, // CSS width can't be negative. |
| 81 {at: 0, is: '10px'}, | 82 {at: 0, is: '10px'}, |
| 82 {at: 0.3, is: '37px'}, | 83 {at: 0.3, is: '37px'}, |
| 83 {at: 0.6, is: '64px'}, | 84 {at: 0.6, is: '64px'}, |
| 84 {at: 1, is: '100px'}, | 85 {at: 1, is: '100px'}, |
| 85 {at: 1.5, is: '145px'} | 86 {at: 1.5, is: '145px'} |
| 86 ]); | 87 ]); |
| 87 </script> | 88 </script> |
| 88 </body> | 89 </body> |
| OLD | NEW |