Skip to content

Commit f556965

Browse files
committed
Put stripes() definition behind a <1d-image> type to make it easily extensible
1 parent 6f450ab commit f556965

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

css-backgrounds-4/Overview.bs

+5-5
Original file line numberDiff line numberDiff line change
@@ -185,24 +185,24 @@ 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>> || <<stripes()>>
188+
Value: <<color>> || <<1d-image>>
189189
Initial: currentcolor
190190
Applies to: all elements
191191
Inherited: no
192192
Percentages: n/a
193-
Computed Value: the computed color and/or <<stripes()>> function
193+
Computed Value: the computed color and/or a one-dimensional image function
194194
Animation type: see prose
195195
</pre>
196196

197197
<pre class="propdef shorthand">
198198
Name: border-color
199-
Value: [ <<color>> || <<stripes()>> ]{1,4}
199+
Value: [ <<color>> || <<1d-image>> ]{1,4}
200200
</pre>
201201

202202
These properties set the foreground color of the border specified
203203
by the 'border-style' properties.
204204

205-
The stripes defined by the <<stripes()>> function follow the direction of
205+
The stripes defined by <<1d-image>> follow the direction of
206206
the side the border is applied on (i.e. horizontally on left and
207207
right borders and vertically on top and bottom borders), starting outwards.
208208
With that, the corresponding 'border-*-width' property defines the total
@@ -711,7 +711,7 @@ Additions Since Level 3</h3>
711711
<li>logical 'background-position' values (''background-position/start'', ''background-position/end'')
712712
<li>the ''extend'' keyword of 'background-repeat'
713713
<li>'corner-shape'
714-
<li><<stripes()>> as value for ''border-color'' and its longhands
714+
<li><<1d-image>> as value for ''border-color'' and its longhands
715715
<li>multiple border colors per border
716716
<li>logical border properties
717717
<li><a href="#partial-borders">Partial Borders</a> (make part of border shorthand as well!)

css-images-4/Overview.bs

+4-3
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Value Definitions {#values}
7272
or <a section href="#gradients">gradient notation</a>.
7373
Its syntax is:
7474

75-
<pre class="prod"><dfn>&lt;image></dfn> = <<url>> | <<image()>> | <<image-set()>> | <<cross-fade()>> | <<element()>> | <<gradient>> | <<stripes()>></pre>
75+
<pre class="prod"><dfn>&lt;image></dfn> = <<url>> | <<image()>> | <<image-set()>> | <<cross-fade()>> | <<element()>> | <<gradient>> | <<1d-image>></pre>
7676

7777
An <<image>> can be used in many CSS properties,
7878
including the 'background-image', 'list-style-image', 'cursor' properties [[!CSS2]]
@@ -1910,9 +1910,10 @@ Color Stop “Fixup”</h4>
19101910
The ''stripes()'' function allows to define a number of stripes of
19111911
different colors with different widths.
19121912

1913-
The syntax for ''stripes()'' is defined as:
1913+
The syntax for ''1d-image'' and ''stripes()'' is defined as:
19141914

19151915
<pre class=prod>
1916+
<dfn>&lt;1d-image></dfn> = <<stripes()>>
19161917
<dfn>stripes()</dfn> = stripes( [ <<color>> && [ <<length-percentage>> | <<flex>>]? ]# )
19171918
</pre>
19181919

@@ -2501,7 +2502,7 @@ Changes {#changes}
25012502
- Switched color-stop grammar to repeat at end for readability
25022503
- Clarified that object-fit and image-resolution use discrete animation
25032504
- Fixed definition of cross-fade() image blending
2504-
- Added stripes() function and added it to &lt;image> data type
2505+
- Added &lt;1d-image> data type and stripes() function and added &1d-image> to &lt;image> data type
25052506
- Moved interpolation of images from [[css3-images]]
25062507
- Clarifed that cross-fade() takes 1+ arguments. Defined sizing and painting of the new function arguments in detail.
25072508
- Moved cross-fade() from [[css3-images]]

css-ui-4/Overview.bs

+3-3
Original file line numberDiff line numberDiff line change
@@ -287,14 +287,14 @@ Animation type: by computed value
287287

288288
<pre class="propdef">
289289
Name: outline-color
290-
Value: [ <<color>> || <<stripes()>> ] | invert
290+
Value: [ <<color>> || <<1d-image>> ] | invert
291291
Initial: invert
292292
Applies to: all elements
293293
Inherited: no
294294
Percentages: N/A
295295
Computed value: The computed value for ''outline-color/invert'' is ''outline-color/invert''.
296296
For <<color>> values, see [[!CSS-COLOR-4#resolving-color-values]] in [[!CSS-COLOR-4]].
297-
<<stripes()>> values are computed as defined in their definition.
297+
<<1d-image>> values are computed as defined in their definition.
298298
Animation type: by computed value
299299
</pre>
300300

@@ -2550,7 +2550,7 @@ the following normative changes have been made:
25502550
(Support for the broader <<image>> type remains allowed but optional.)
25512551

25522552
<li>
2553-
Added <<stripes()>> as value for the 'outline-color' property.
2553+
Added <<1d-image>> as value for the 'outline-color' property.
25542554
</ul>
25552555

25562556
<h3 id=changes-24-1-2020 class=no-num>Changes from the

0 commit comments

Comments
 (0)