@@ -185,7 +185,7 @@ Painting Area: the 'background-clip' property</h3>
185185
186186 <pre class=propdef>
187187 Name : border-top-color, border-right-color, border-bottom-color, border-left-color
188- Value : <<color>>#
188+ Value : <<color>> || <<stripes()>>
189189 Initial : currentcolor
190190 Applies to : all elements
191191 Inherited : no
@@ -196,15 +196,21 @@ Painting Area: the 'background-clip' property</h3>
196196
197197 <pre class="propdef shorthand">
198198 Name : border-color
199- Value : <<color>># {1,4}
199+ Value : [ <<color>> || <<stripes()>> ] {1,4}
200200 </pre>
201201
202202 These properties set the foreground color of the border specified
203203 by the 'border-style' properties.
204- If a list of values is provided, the border is split into equal width bands of each color
205- along the direction of the side the border is applied on
206- (i.e. split horizontally on left and right borders and vertically on top and bottom borders),
207- starting outwards.
204+
205+ The stripes defined by the <<stripes()>> function follow the direction of
206+ the side the border is applied on (i.e. horizontally on left and
207+ right borders and vertically on top and bottom borders), starting outwards.
208+ With that, the corresponding 'border-*-width' property defines the total
209+ width of the stripes.
210+
211+ The stripes are painted above a given <<color>> . This allows the <<color>>
212+ value to serve as a fallback, so any transparent stripes let the color
213+ shine through.
208214
209215 When interpolating between borders with the same number of colors,
210216 interpolation is performed individually per color band as <a href="https://www.w3.org/TR/css3-transitions/#animtype-color">color</a> .
@@ -223,7 +229,10 @@ Painting Area: the 'background-clip' property</h3>
223229 <pre class=lang-css>
224230 .foo {
225231 border: 30px solid;
226- border-color: skyblue orange yellowgreen indianred, black yellow;
232+ border-top-color: stripes(skyblue, black);
233+ border-right-color: stripes(orange, yellow);
234+ border-bottom-color: stripes(yellowgreen, black);
235+ border-left-color: stripes(indianred, yellow);
227236 }
228237 </pre>
229238
0 commit comments