| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
| 3 <style> | 3 <style> |
| 4 .container { | 4 .container { |
| 5 display: inline-block; | 5 display: inline-block; |
| 6 } | 6 } |
| 7 .parent { | 7 .parent { |
| 8 ry: 30px; | 8 ry: 30px; |
| 9 } | 9 } |
| 10 .target { | 10 .target { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 to: '20px', | 29 to: '20px', |
| 30 }, [ | 30 }, [ |
| 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 ]); |
| 38 | 38 |
| 39 assertInterpolation({ | 39 assertNoInterpolation({ |
| 40 property: 'ry', | 40 property: 'ry', |
| 41 from: 'initial', | 41 from: 'initial', |
| 42 to: '20px', | 42 to: '20px', |
| 43 }, [ | 43 }); |
| 44 {at: -0.3, is: '0px'}, | |
| 45 {at: 0, is: '0px'}, | |
| 46 {at: 0.3, is: '6px'}, | |
| 47 {at: 0.6, is: '12px'}, | |
| 48 {at: 1, is: '20px'}, | |
| 49 {at: 1.5, is: '30px'}, | |
| 50 ]); | |
| 51 | 44 |
| 52 assertInterpolation({ | 45 assertInterpolation({ |
| 53 property: 'ry', | 46 property: 'ry', |
| 54 from: 'inherit', | 47 from: 'inherit', |
| 55 to: '20px', | 48 to: '20px', |
| 56 }, [ | 49 }, [ |
| 57 {at: -0.3, is: '33px'}, | 50 {at: -0.3, is: '33px'}, |
| 58 {at: 0, is: '30px'}, | 51 {at: 0, is: '30px'}, |
| 59 {at: 0.3, is: '27px'}, | 52 {at: 0.3, is: '27px'}, |
| 60 {at: 0.6, is: '24px'}, | 53 {at: 0.6, is: '24px'}, |
| 61 {at: 1, is: '20px'}, | 54 {at: 1, is: '20px'}, |
| 62 {at: 1.5, is: '15px'}, | 55 {at: 1.5, is: '15px'}, |
| 63 ]); | 56 ]); |
| 64 | 57 |
| 65 assertInterpolation({ | 58 assertNoInterpolation({ |
| 66 property: 'ry', | 59 property: 'ry', |
| 67 from: 'unset', | 60 from: 'unset', |
| 68 to: '20px', | 61 to: '20px', |
| 69 }, [ | 62 }); |
| 70 {at: -0.3, is: '0px'}, | |
| 71 {at: 0, is: '0px'}, | |
| 72 {at: 0.3, is: '6px'}, | |
| 73 {at: 0.6, is: '12px'}, | |
| 74 {at: 1, is: '20px'}, | |
| 75 {at: 1.5, is: '30px'}, | |
| 76 ]); | |
| 77 | 63 |
| 78 assertInterpolation({ | 64 assertInterpolation({ |
| 79 property: 'ry', | 65 property: 'ry', |
| 80 from: '0px', | 66 from: '0px', |
| 81 to: '20px' | 67 to: '20px' |
| 82 }, [ | 68 }, [ |
| 83 {at: -0.3, is: '0px'}, // SVG ry can't be negative. | 69 {at: -0.3, is: '0px'}, // SVG ry can't be negative. |
| 84 {at: 0, is: '0px'}, | 70 {at: 0, is: '0px'}, |
| 85 {at: 0.3, is: '6px'}, | 71 {at: 0.3, is: '6px'}, |
| 86 {at: 0.6, is: '12px'}, | 72 {at: 0.6, is: '12px'}, |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 }, [ | 128 }, [ |
| 143 {at: -0.3, is: '0'}, | 129 {at: -0.3, is: '0'}, |
| 144 {at: 0, is: '0'}, | 130 {at: 0, is: '0'}, |
| 145 {at: 0.3, is: '6'}, | 131 {at: 0.3, is: '6'}, |
| 146 {at: 0.6, is: '12'}, | 132 {at: 0.6, is: '12'}, |
| 147 {at: 1, is: '20'}, | 133 {at: 1, is: '20'}, |
| 148 {at: 1.5, is: '30'}, | 134 {at: 1.5, is: '30'}, |
| 149 ]); | 135 ]); |
| 150 </script> | 136 </script> |
| 151 </body> | 137 </body> |
| OLD | NEW |