| 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 border-image-width: 100px; | 5 border-image-width: 100px; |
| 6 } | 6 } |
| 7 .target { | 7 .target { |
| 8 width: 80px; | 8 width: 80px; |
| 9 height: 80px; | 9 height: 80px; |
| 10 background-color: black; | 10 background-color: black; |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 }, [ | 135 }, [ |
| 136 // Percentages are relative to the size of the border image area, which is 120
px. | 136 // Percentages are relative to the size of the border image area, which is 120
px. |
| 137 {at: -0.3, is: 'calc(13px + -6%)'}, // Should be parsed as 13px - 7px = 6px | 137 {at: -0.3, is: 'calc(13px + -6%)'}, // Should be parsed as 13px - 7px = 6px |
| 138 {at: 0, is: '10px'}, | 138 {at: 0, is: '10px'}, |
| 139 {at: 0.3, is: 'calc(7px + 6%)'}, // Should be parsed as 7px + 7px = 14px | 139 {at: 0.3, is: 'calc(7px + 6%)'}, // Should be parsed as 7px + 7px = 14px |
| 140 {at: 0.6, is: 'calc(4px + 12%)'}, // Should be parsed as 4px + 14px = 18px | 140 {at: 0.6, is: 'calc(4px + 12%)'}, // Should be parsed as 4px + 14px = 18px |
| 141 {at: 1, is: '20%'}, // Should be parsed as 24px | 141 {at: 1, is: '20%'}, // Should be parsed as 24px |
| 142 {at: 1.5, is: 'calc(-5px + 30%)'}, // Should be parsed as -5px + 36px = 31px | 142 {at: 1.5, is: 'calc(-5px + 30%)'}, // Should be parsed as -5px + 36px = 31px |
| 143 ]); | 143 ]); |
| 144 | 144 |
| 145 assertInterpolation({ |
| 146 property: 'border-image-width', |
| 147 from: '10px auto auto 20', |
| 148 to: '110px auto auto 120' |
| 149 }, [ |
| 150 {at: -0.3, is: ' 0px auto auto 0'}, |
| 151 {at: 0, is: ' 10px auto auto 20'}, |
| 152 {at: 0.3, is: ' 40px auto auto 50'}, |
| 153 {at: 0.6, is: ' 70px auto auto 80'}, |
| 154 {at: 1, is: '110px auto auto 120'}, |
| 155 {at: 1.5, is: '160px auto auto 170'}, |
| 156 ]); |
| 157 |
| 145 assertNoInterpolation({ | 158 assertNoInterpolation({ |
| 146 property: 'border-image-width', | 159 property: 'border-image-width', |
| 147 from: '10px auto auto 20', | 160 from: '10px auto auto 20', |
| 148 to: '110px auto auto 120' | |
| 149 }); | |
| 150 assertNoInterpolation({ | |
| 151 property: 'border-image-width', | |
| 152 from: '10px auto auto 20', | |
| 153 to: '110px auto 120 auto' | 161 to: '110px auto 120 auto' |
| 154 }); | 162 }); |
| 155 assertNoInterpolation({ | 163 assertNoInterpolation({ |
| 156 property: 'border-image-width', | 164 property: 'border-image-width', |
| 157 from: '10px', | 165 from: '10px', |
| 158 to: '20' | 166 to: '20' |
| 159 }); | 167 }); |
| 160 assertNoInterpolation({ | 168 assertNoInterpolation({ |
| 161 property: 'border-image-width', | 169 property: 'border-image-width', |
| 162 from: '10', | 170 from: '10', |
| 163 to: '20px' | 171 to: '20px' |
| 164 }); | 172 }); |
| 165 assertNoInterpolation({ | 173 assertNoInterpolation({ |
| 166 property: 'border-image-width', | 174 property: 'border-image-width', |
| 167 from: '10%', | 175 from: '10%', |
| 168 to: '20' | 176 to: '20' |
| 169 }); | 177 }); |
| 170 assertNoInterpolation({ | 178 assertNoInterpolation({ |
| 171 property: 'border-image-width', | 179 property: 'border-image-width', |
| 172 from: '10', | 180 from: '10', |
| 173 to: '20%' | 181 to: '20%' |
| 174 }); | 182 }); |
| 175 </script> | 183 </script> |
| 176 </body> | 184 </body> |
| OLD | NEW |