You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These properties set the foreground color of the border specified
177
+
by the 'border-style' properties.
219
178
If a list of values is provided, the border is split into equal width bands of each color
220
-
along the direction of the side the border is applied on (i.e. split horizontally on left and right borders and vertically on top and bottom borders),
179
+
along the direction of the side the border is applied on
180
+
(i.e. split horizontally on left and right borders and vertically on top and bottom borders),
221
181
starting outwards.
222
182
223
-
<p>When interpolating between borders with the same number of colors, interpolation is performed individually per color band as <a href="https://www.w3.org/TR/css3-transitions/#animtype-color">color</a>.
224
-
Interpolation between borders with different numbers of colors is discrete.
183
+
When interpolating between borders with the same number of colors,
184
+
interpolation is performed individually per color band as <a href="https://www.w3.org/TR/css3-transitions/#animtype-color">color</a>.
185
+
Interpolation between borders with different numbers of colors is discrete.
225
186
226
-
<p>'Border-color' is a shorthand for the
227
-
four 'border-*-color' properties. The four values set the top, right,
228
-
bottom and left border, respectively. A missing left is the same as
229
-
right, a missing bottom is the same as top, and a missing right is
230
-
also the same as top. This is resolved individually for each list item.
187
+
'border-color' is a shorthand for the four 'border-*-color' properties.
188
+
The four values set the top, right, bottom and left border, respectively.
189
+
A missing left is the same as right,
190
+
a missing bottom is the same as top,
191
+
and a missing right is also the same as top.
192
+
This is resolved individually for each list item.
231
193
232
194
<div class="example">
233
195
Using multiple colors for each side:
234
196
235
-
<pre>
197
+
<pre class=lang-css>
198
+
.foo {
236
199
border: 30px solid;
237
200
border-color: skyblue orange yellowgreen indianred, black yellow;
201
+
}
238
202
</pre>
239
203
240
204
Sample rendering:
241
205
242
206
<img src="images/multicolor-border.png" alt="">
243
207
244
-
The same border colors with 'border-style: dotted':
208
+
The same border colors with ''border-style: dotted'':
Issue: The syntax for comma-separated multiple colors <a href="https://github.com/w3c/csswg-drafts/issues/1172#issuecomment-379878579">is still under active discussion</a> in the CSS WG.
213
+
Issue: The syntax for comma-separated multiple colors
214
+
<a href="https://github.com/w3c/csswg-drafts/issues/1172#issuecomment-379878579">is still under active discussion</a> in the CSS WG.
0 commit comments