OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
3 <style> | 3 <style> |
4 .target { | 4 .target { |
5 width: 100px; | 5 width: 100px; |
6 height: 100px; | 6 height: 100px; |
7 background-color: black; | 7 background-color: black; |
8 display: inline-block; | 8 display: inline-block; |
9 -webkit-mask-box-image-width: 5px; | 9 -webkit-mask-box-image-width: 5px; |
10 -webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0
, 0, 0, 1)); | 10 -webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0
, 0, 0, 1)); |
(...skipping 13 matching lines...) Expand all Loading... |
24 }, [ | 24 }, [ |
25 {at: -0.3, is: '0px'}, // CSS -webkit-mask-box-image-width can't be negative. | 25 {at: -0.3, is: '0px'}, // CSS -webkit-mask-box-image-width can't be negative. |
26 {at: 0, is: '0px'}, | 26 {at: 0, is: '0px'}, |
27 {at: 0.3, is: '6px'}, | 27 {at: 0.3, is: '6px'}, |
28 {at: 0.6, is: '12px'}, | 28 {at: 0.6, is: '12px'}, |
29 {at: 1, is: '20px'}, | 29 {at: 1, is: '20px'}, |
30 {at: 1.5, is: '30px'}, | 30 {at: 1.5, is: '30px'}, |
31 {at: 5, is: '100px'}, | 31 {at: 5, is: '100px'}, |
32 {at: 10, is: '200px'} | 32 {at: 10, is: '200px'} |
33 ]); | 33 ]); |
| 34 assertInterpolation({ |
| 35 property: '-webkit-mask-box-image-width', |
| 36 from: '0', |
| 37 to: '20' |
| 38 }, [ |
| 39 {at: -0.3, is: '0'}, // CSS -webkit-mask-box-image-width can't be negative. |
| 40 {at: 0, is: '0'}, |
| 41 {at: 0.3, is: '6'}, |
| 42 {at: 0.6, is: '12'}, |
| 43 {at: 1, is: '20'}, |
| 44 {at: 1.5, is: '30'}, |
| 45 {at: 5, is: '100'}, |
| 46 {at: 10, is: '200'} |
| 47 ]); |
34 </script> | 48 </script> |
35 </body> | 49 </body> |
OLD | NEW |