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-width: 100px; | 5 border-image-width: 100px; |
6 } | 6 } |
7 .target { | 7 .target { |
8 width: 80px; | 8 width: 80px; |
9 height: 80px; | 9 height: 80px; |
10 background-color: black; | 10 background-color: black; |
11 display: inline-block; | 11 display: inline-block; |
12 border: 10px; | 12 border: 10px; |
13 border-image-source: linear-gradient(45deg, red, blue, green); | 13 border-image-source: linear-gradient(45deg, red, blue, green); |
14 border-image-width: 10px; | 14 border-image-width: 10px; |
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-width', | 25 property: 'border-image-width', |
26 from: '', | 26 from: neutralKeyframe, |
27 to: '20px', | 27 to: '20px', |
28 }, [ | 28 }, [ |
29 {at: -0.3, is: '7px'}, | 29 {at: -0.3, is: '7px'}, |
30 {at: 0, is: '10px'}, | 30 {at: 0, is: '10px'}, |
31 {at: 0.3, is: '13px'}, | 31 {at: 0.3, is: '13px'}, |
32 {at: 0.6, is: '16px'}, | 32 {at: 0.6, is: '16px'}, |
33 {at: 1, is: '20px'}, | 33 {at: 1, is: '20px'}, |
34 {at: 1.5, is: '25px'}, | 34 {at: 1.5, is: '25px'}, |
35 {at: 5, is: '60px'}, | 35 {at: 5, is: '60px'}, |
36 {at: 10, is: '110px'}, | 36 {at: 10, is: '110px'}, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 from: '10%', | 167 from: '10%', |
168 to: '20' | 168 to: '20' |
169 }); | 169 }); |
170 assertNoInterpolation({ | 170 assertNoInterpolation({ |
171 property: 'border-image-width', | 171 property: 'border-image-width', |
172 from: '10', | 172 from: '10', |
173 to: '20%' | 173 to: '20%' |
174 }); | 174 }); |
175 </script> | 175 </script> |
176 </body> | 176 </body> |
OLD | NEW |