Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions css-values-5/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,9 @@ Toggling Between Values: ''toggle()''</h3>

The syntax of the ''toggle()'' expression is:

<pre>toggle( <<whole-value>> [ ';' <<whole-value>> ]+ )</pre>
<pre class=prod>
<dfn><<toggle()>></dfn> = toggle( <<whole-value>> [ ';' <<whole-value>> ]+ )
</pre>

Note: This [=functional notation=] uses semicolons to separate arguments
rather than the more typical comma
Expand Down Expand Up @@ -980,7 +982,7 @@ Generating a Random Numeric Value: the ''random()'' function</h3>
optionally limiting the possible values to a step between those limits:

<pre class=prod>
&lt;random()> = random( <<random-caching-options>>? , <<calc-sum>>, <<calc-sum>>, [by <<calc-sum>>]? );
&lt;random()> = random( <<random-caching-options>>? , <<calc-sum>>, <<calc-sum>>, [by <<calc-sum>>]? )

<dfn><<random-caching-options>></dfn> = <<dashed-ident>> || per-element
</pre>
Expand Down Expand Up @@ -1142,7 +1144,7 @@ Picking a Random Item From a List: the ''random-item()'' function</h3>
from among its list of items.

<pre class=prod>
&lt;random-item()> = random-item( <<random-caching-options>> ';' <<any-value>> [ ';' <<any-value>> ]* )
&lt;random-item()> = random-item( <<random-caching-options>> ';' <<declaration-value>>? [ ';' <<declaration-value>>? ]* )
</pre>

The <em>required</em> <<random-caching-options>>
Expand Down Expand Up @@ -1178,7 +1180,7 @@ Picking a Random Item From a List: the ''random-item()'' function</h3>
but optional in ''random()'',
both for parsing reasons
(it's impossible to tell whether ''random-item(--foo; --bar; --baz)''
has three <<any-value>> arguments
has three <<declaration-value>> arguments
or two and a <<random-caching-options>> argument),
and because accidentally associating the random generation of ''random-item()'' functions together
is much easier to do accidentally,
Expand Down