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-clip-path: inset(10px); | 5 -webkit-clip-path: inset(10px); |
6 padding: 10px; | 6 padding: 10px; |
7 } | 7 } |
8 .target { | 8 .target { |
9 display: inline-block; | 9 display: inline-block; |
10 width: 100px; | 10 width: 100px; |
11 height: 100px; | 11 height: 100px; |
12 background-color: black; | 12 background-color: black; |
13 -webkit-clip-path: inset(10px); | 13 -webkit-clip-path: inset(10px); |
14 } | 14 } |
15 .expected { | 15 .expected { |
16 background-color: green; | 16 background-color: green; |
17 } | 17 } |
18 </style> | 18 </style> |
19 <body> | 19 <body> |
20 <script src="resources/interpolation-test.js"></script> | 20 <script src="resources/interpolation-test.js"></script> |
21 <script> | 21 <script> |
22 assertInterpolation({ | 22 assertInterpolation({ |
23 property: '-webkit-clip-path', | 23 property: '-webkit-clip-path', |
24 from: '', | 24 from: neutralKeyframe, |
25 to: 'inset(20px)', | 25 to: 'inset(20px)', |
26 }, [ | 26 }, [ |
27 {at: -0.3, is: 'inset(7px)'}, | 27 {at: -0.3, is: 'inset(7px)'}, |
28 {at: 0, is: 'inset(10px)'}, | 28 {at: 0, is: 'inset(10px)'}, |
29 {at: 0.3, is: 'inset(13px)'}, | 29 {at: 0.3, is: 'inset(13px)'}, |
30 {at: 0.6, is: 'inset(16px)'}, | 30 {at: 0.6, is: 'inset(16px)'}, |
31 {at: 1, is: 'inset(20px)'}, | 31 {at: 1, is: 'inset(20px)'}, |
32 {at: 1.5, is: 'inset(25px)'}, | 32 {at: 1.5, is: 'inset(25px)'}, |
33 ]); | 33 ]); |
34 | 34 |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 to: 'polygon(110px 120px)', | 202 to: 'polygon(110px 120px)', |
203 }); | 203 }); |
204 | 204 |
205 assertNoInterpolation({ | 205 assertNoInterpolation({ |
206 property: '-webkit-clip-path', | 206 property: '-webkit-clip-path', |
207 from: 'polygon(10px 20px, 30px 40px)', | 207 from: 'polygon(10px 20px, 30px 40px)', |
208 to: 'polygon(110px 120px)', | 208 to: 'polygon(110px 120px)', |
209 }); | 209 }); |
210 </script> | 210 </script> |
211 </body> | 211 </body> |
OLD | NEW |