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-outset: 30px; | 5 -webkit-mask-box-image-outset: 30px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 width: 100px; | 8 width: 100px; |
9 height: 100px; | 9 height: 100px; |
10 background-color: black; | 10 background-color: black; |
11 display: inline-block; | 11 display: inline-block; |
12 border: 25px; | 12 border: 25px; |
13 margin-right: 50px; | 13 margin-right: 50px; |
14 -webkit-mask-box-image-slice: 30%; | 14 -webkit-mask-box-image-slice: 30%; |
15 -webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0
, 0, 0, 1)); | 15 -webkit-mask-box-image-source: linear-gradient(45deg, rgba(0, 0, 0, 0), rgba(0
, 0, 0, 1)); |
16 -webkit-mask-box-image-outset: 10px; | 16 -webkit-mask-box-image-outset: 10px; |
17 } | 17 } |
18 .expected { | 18 .expected { |
19 background-color: green; | 19 background-color: green; |
20 } | 20 } |
21 </style> | 21 </style> |
22 <body> | 22 <body> |
23 <script src="resources/interpolation-test.js"></script> | 23 <script src="resources/interpolation-test.js"></script> |
24 <script> | 24 <script> |
25 assertInterpolation({ | 25 assertInterpolation({ |
26 property: '-webkit-mask-box-image-outset', | 26 property: '-webkit-mask-box-image-outset', |
27 from: '', | 27 from: neutralKeyframe, |
28 to: '20px', | 28 to: '20px', |
29 }, [ | 29 }, [ |
30 {at: -0.3, is: '7px'}, | 30 {at: -0.3, is: '7px'}, |
31 {at: 0, is: '10px'}, | 31 {at: 0, is: '10px'}, |
32 {at: 0.4, is: '14px'}, | 32 {at: 0.4, is: '14px'}, |
33 {at: 0.6, is: '16px'}, | 33 {at: 0.6, is: '16px'}, |
34 {at: 1, is: '20px'}, | 34 {at: 1, is: '20px'}, |
35 {at: 1.5, is: '25px'}, | 35 {at: 1.5, is: '25px'}, |
36 ]); | 36 ]); |
37 | 37 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 }, [ | 93 }, [ |
94 {at: -0.3, is: '0'}, // CSS -webkit-mask-box-image-outset can't be negative. | 94 {at: -0.3, is: '0'}, // CSS -webkit-mask-box-image-outset can't be negative. |
95 {at: 0, is: '0'}, | 95 {at: 0, is: '0'}, |
96 {at: 0.4, is: '20'}, | 96 {at: 0.4, is: '20'}, |
97 {at: 0.6, is: '30'}, | 97 {at: 0.6, is: '30'}, |
98 {at: 1, is: '50'}, | 98 {at: 1, is: '50'}, |
99 {at: 1.5, is: '75'} | 99 {at: 1.5, is: '75'} |
100 ]); | 100 ]); |
101 </script> | 101 </script> |
102 </body> | 102 </body> |
OLD | NEW |