| 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 -webkit-mask-box-image-slice: 30%; | 5 -webkit-mask-box-image-slice: 30%; |
| 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 -webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0
, 0, 0, 1)); | 13 -webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0
, 0, 0, 1)); |
| 14 -webkit-mask-box-image-slice: 10%; | 14 -webkit-mask-box-image-slice: 10%; |
| 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: '-webkit-mask-box-image-slice', | 25 property: '-webkit-mask-box-image-slice', |
| 26 from: '', | 26 from: neutralKeyframe, |
| 27 to: '20%', | 27 to: '20%', |
| 28 }, [ | 28 }, [ |
| 29 {at: -0.3, is: '7%'}, | 29 {at: -0.3, is: '7%'}, |
| 30 {at: 0, is: '10%'}, | 30 {at: 0, is: '10%'}, |
| 31 {at: 0.4, is: '14%'}, | 31 {at: 0.4, is: '14%'}, |
| 32 {at: 0.6, is: '16%'}, | 32 {at: 0.6, is: '16%'}, |
| 33 {at: 1, is: '20%'}, | 33 {at: 1, is: '20%'}, |
| 34 {at: 1.5, is: '25%'}, | 34 {at: 1.5, is: '25%'}, |
| 35 {at: 10, is: '110%'}, | 35 {at: 10, is: '110%'}, |
| 36 ]); | 36 ]); |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 to: '40% 50 60% 70', | 102 to: '40% 50 60% 70', |
| 103 }); | 103 }); |
| 104 | 104 |
| 105 assertNoInterpolation({ | 105 assertNoInterpolation({ |
| 106 property: '-webkit-mask-box-image-slice', | 106 property: '-webkit-mask-box-image-slice', |
| 107 from: '0% 10 20 30 fill', | 107 from: '0% 10 20 30 fill', |
| 108 to: '40 50 60% 70', | 108 to: '40 50 60% 70', |
| 109 }); | 109 }); |
| 110 </script> | 110 </script> |
| 111 </body> | 111 </body> |
| OLD | NEW |