5 border-image-slice:
50%;
10 background-color: black;
11 display: inline-block;
13 border-image-source: linear-gradient(
45deg, red, blue, green);
14 border-image-slice:
20%;
17 background-color: green;
22 <script src=
"resources/interpolation-test.js"></script>
25 property
: 'border-image-slice',
29 {at
: -0.3, is
: '23%'},
39 property
: 'border-image-slice',
43 {at
: -0.3, is
: '127%'},
53 property
: 'border-image-slice',
57 {at
: -0.3, is
: '62%'},
67 property
: 'border-image-slice',
71 {at
: -0.3, is
: '127%'},
81 property
: 'border-image-slice',
85 {at
: -0.3, is
: '0%'}, // CSS border-image-slice can't be negative.
94 assertNoInterpolation({
95 property
: 'border-image-slice',
100 assertNoInterpolation({
101 property
: 'border-image-slice',
106 assertInterpolation({
107 property
: 'border-image-slice',
108 from: '0% 10% 20% 30%',
109 to
: '40% 50% 60% 70%',
111 {at
: -0.5, is
: '0% 0% 0% 10%'},
112 {at
: 0, is
: '0% 10% 20% 30%'},
113 {at
: 0.3, is
: '12% 22% 32% 42%'},
114 {at
: 0.5, is
: '20% 30% 40% 50%'},
115 {at
: 0.6, is
: '24% 34% 44% 54%'},
116 {at
: 1, is
: '40% 50% 60% 70%'},
117 {at
: 1.5, is
: '60% 70% 80% 90%'},
120 assertInterpolation({
121 property
: 'border-image-slice',
122 from: '0 10 20 30 fill',
123 to
: '40 50 60 70 fill',
125 {at
: -0.5, is
: '0 0 0 10 fill'}, // CSS border-image-slice can't be negative.
126 {at
: 0, is
: '0 10 20 30 fill'},
127 {at
: 0.3, is
: '12 22 32 42 fill'},
128 {at
: 0.5, is
: '20 30 40 50 fill'},
129 {at
: 0.6, is
: '24 34 44 54 fill'},
130 {at
: 1, is
: '40 50 60 70 fill'},
131 {at
: 1.5, is
: '60 70 80 90 fill'},