Skip to content

Commit bb5ffe7

Browse files
committed
Switch toggle to semicolon-separated. Fix grammar for semicolons in mix(). #6704
1 parent 14ac6e4 commit bb5ffe7

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

css-values-4/Overview.bs

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -465,6 +465,16 @@ Combining Values: Interpolation, Addition, and Accumulation</h2>
465465
If a value type does not define a specific procedure for <a>accumulation</a>,
466466
its <a>accumulation</a> operation is identical to <a>addition</a>.
467467

468+
<!--
469+
██ ██ ████ ██ ██ ███ ███
470+
███ ███ ██ ██ ██ ██ ██
471+
████ ████ ██ ██ ██ ██ ██
472+
██ ███ ██ ██ ███ ██ ██
473+
██ ██ ██ ██ ██ ██ ██
474+
██ ██ ██ ██ ██ ██ ██
475+
██ ██ ████ ██ ██ ███ ███
476+
-->
477+
468478
<h3 id="interpolate">
469479
Representing Interpolated Values: the ''mix()'' notation</h3>
470480

@@ -473,7 +483,7 @@ Representing Interpolated Values: the ''mix()'' notation</h3>
473483
whose syntax is defined as follows:
474484

475485
<pre class="prod">
476-
mix( <<percentage>> ; <<start-value>> ; <<end-value>> )
486+
mix( <<percentage>> ';' <<start-value>> ';' <<end-value>> )
477487
</pre>
478488

479489
<dl dfn-for="mix()">
@@ -2647,18 +2657,21 @@ Toggling Between Values: ''toggle()''</h3>
26472657

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

2650-
<pre>toggle( <<toggle-value>># )</pre>
2660+
<pre>toggle( <<toggle-value>> [ ';' <<toggle-value>> ]+ )</pre>
26512661

26522662
where <dfn>&lt;toggle-value></dfn> is any CSS value
2653-
that is valid where the expression is placed,
2654-
and that doesn't contain any top-level commas.
2663+
that is valid where the expression is placed.
26552664
If any of the values inside are not valid,
26562665
then the entire ''toggle()'' expression is invalid.
26572666
The ''toggle()'' expression may be used as the value of any property,
26582667
but must be the only component in that property's value.
26592668

2660-
The ''toggle()'' notation is not allowed to be nested; nor may it
2661-
contain ''attr()'' or ''calc()'' notations.
2669+
Note: This [=functional notation=] uses semicolons to separate arguments
2670+
rather than the more typical comma
2671+
because the values themselves can contain commas.
2672+
2673+
The ''toggle()'' notation is not allowed to be nested;
2674+
nor may it contain ''attr()'' or ''calc()'' notations.
26622675
Declarations containing such constructs are invalid.
26632676

26642677
<div class="example">

0 commit comments

Comments
 (0)