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-outset: 10px; | 5 border-image-outset: 10px; |
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 margin-right: 50px; | 13 margin-right: 50px; |
14 border-image-slice: 30%; | 14 border-image-slice: 30%; |
15 background-clip: content-box; | 15 background-clip: content-box; |
16 border-image-source: linear-gradient(45deg, pink, blue, white, black, green); | 16 border-image-source: linear-gradient(45deg, pink, blue, white, black, green); |
17 border-image-outset: 1px; | 17 border-image-outset: 1px; |
18 } | 18 } |
19 .expected { | 19 .expected { |
20 background-color: green; | 20 background-color: green; |
21 } | 21 } |
22 </style> | 22 </style> |
23 <body> | 23 <body> |
24 <script src="resources/interpolation-test.js"></script> | 24 <script src="resources/interpolation-test.js"></script> |
25 <script> | 25 <script> |
26 assertInterpolation({ | 26 assertInterpolation({ |
27 property: 'border-image-outset', | 27 property: 'border-image-outset', |
28 from: '', | 28 from: neutralKeyframe, |
29 to: '2px', | 29 to: '2px', |
30 }, [ | 30 }, [ |
31 {at: -0.3, is: '0.7px'}, | 31 {at: -0.3, is: '0.7px'}, |
32 {at: 0, is: '1px'}, | 32 {at: 0, is: '1px'}, |
33 {at: 0.3, is: '1.3px'}, | 33 {at: 0.3, is: '1.3px'}, |
34 {at: 0.6, is: '1.6px'}, | 34 {at: 0.6, is: '1.6px'}, |
35 {at: 1, is: '2px'}, | 35 {at: 1, is: '2px'}, |
36 {at: 1.5, is: '2.5px'}, | 36 {at: 1.5, is: '2.5px'}, |
37 ]); | 37 ]); |
38 | 38 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 }, [ | 108 }, [ |
109 {at: -0.3, is: '0 0 0px 0px'}, // Non-negative | 109 {at: -0.3, is: '0 0 0px 0px'}, // Non-negative |
110 {at: 0, is: '1 2 3px 4px'}, | 110 {at: 0, is: '1 2 3px 4px'}, |
111 {at: 0.3, is: '31 32 33px 34px'}, | 111 {at: 0.3, is: '31 32 33px 34px'}, |
112 {at: 0.6, is: '61 62 63px 64px'}, | 112 {at: 0.6, is: '61 62 63px 64px'}, |
113 {at: 1, is: '101 102 103px 104px'}, | 113 {at: 1, is: '101 102 103px 104px'}, |
114 {at: 1.5, is: '151 152 153px 154px'}, | 114 {at: 1.5, is: '151 152 153px 154px'}, |
115 ]); | 115 ]); |
116 </script> | 116 </script> |
117 </body> | 117 </body> |
OLD | NEW |