| 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-slice: 50%; | 5 border-image-slice: 50%; |
| 6 } | 6 } |
| 7 .target { | 7 .target { |
| 8 width: 50px; | 8 width: 50px; |
| 9 height: 50px; | 9 height: 50px; |
| 10 background-color: black; | 10 background-color: black; |
| 11 display: inline-block; | 11 display: inline-block; |
| 12 border: 25px; | 12 border: 25px; |
| 13 border-image-source: linear-gradient(45deg, red, blue, green); | 13 border-image-source: linear-gradient(45deg, red, blue, green); |
| 14 border-image-slice: 20%; | 14 border-image-slice: 20%; |
| 15 } | 15 } |
| 16 .expected { | 16 .expected { |
| 17 background-color: green; | 17 background-color: green; |
| 18 margin-right: 2px; | 18 margin-right: 2px; |
| 19 } | 19 } |
| 20 </style> | 20 </style> |
| 21 <body> | 21 <body> |
| 22 <script src="resources/interpolation-test.js"></script> | 22 <script src="resources/interpolation-test.js"></script> |
| 23 <script> | 23 <script> |
| 24 assertInterpolation({ | 24 assertInterpolation({ |
| 25 property: 'border-image-slice', | 25 property: 'border-image-slice', |
| 26 from: '', | 26 from: neutralKeyframe, |
| 27 to: '10%', | 27 to: '10%', |
| 28 }, [ | 28 }, [ |
| 29 {at: -0.3, is: '23%'}, | 29 {at: -0.3, is: '23%'}, |
| 30 {at: 0, is: '20%'}, | 30 {at: 0, is: '20%'}, |
| 31 {at: 0.3, is: '17%'}, | 31 {at: 0.3, is: '17%'}, |
| 32 {at: 0.5, is: '15%'}, | 32 {at: 0.5, is: '15%'}, |
| 33 {at: 0.6, is: '14%'}, | 33 {at: 0.6, is: '14%'}, |
| 34 {at: 1, is: '10%'}, | 34 {at: 1, is: '10%'}, |
| 35 {at: 1.5, is: '5%'}, | 35 {at: 1.5, is: '5%'}, |
| 36 ]); | 36 ]); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 to: '40% 50 60% 70', | 157 to: '40% 50 60% 70', |
| 158 }); | 158 }); |
| 159 | 159 |
| 160 assertNoInterpolation({ | 160 assertNoInterpolation({ |
| 161 property: 'border-image-slice', | 161 property: 'border-image-slice', |
| 162 from: '0% 10 20 30 fill', | 162 from: '0% 10 20 30 fill', |
| 163 to: '40 50 60% 70', | 163 to: '40 50 60% 70', |
| 164 }); | 164 }); |
| 165 </script> | 165 </script> |
| 166 </body> | 166 </body> |
| OLD | NEW |