Skip to content

Commit 2b8959a

Browse files
committed
Slightly improve the wording of the + combinator, add an example to the | combinator.
1 parent 7e824e6 commit 2b8959a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

css-properties-values-api/Overview.bs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,9 +327,13 @@ The following syntax strings are supported:
327327
to match CSS conventions.
328328

329329
: Any one of the preceding strings, followed by '+'
330-
:: A list of values of the type specified by the string
330+
:: A space-separated list of one or more repetitions of the type specified by the string.
331331
: Any combination of the preceding, separated by '|'
332332
:: Any value that matches one of the items in the combination, matched in specified order.
333+
334+
Note: That is, given the syntax string <code>"red | &lt;color>"</code>,
335+
matching the value ''red'' against it will parse as an identifier,
336+
while matching the value ''blue'' will parse as a <<color>>.
333337
: "*"
334338
:: Any valid token stream
335339

0 commit comments

Comments
 (0)