@@ -465,6 +465,16 @@ Combining Values: Interpolation, Addition, and Accumulation</h2>
465
465
If a value type does not define a specific procedure for <a>accumulation</a> ,
466
466
its <a>accumulation</a> operation is identical to <a>addition</a> .
467
467
468
+ <!--
469
+ ██ ██ ████ ██ ██ ███ ███
470
+ ███ ███ ██ ██ ██ ██ ██
471
+ ████ ████ ██ ██ ██ ██ ██
472
+ ██ ███ ██ ██ ███ ██ ██
473
+ ██ ██ ██ ██ ██ ██ ██
474
+ ██ ██ ██ ██ ██ ██ ██
475
+ ██ ██ ████ ██ ██ ███ ███
476
+ -->
477
+
468
478
<h3 id="interpolate">
469
479
Representing Interpolated Values: the ''mix()'' notation</h3>
470
480
@@ -473,7 +483,7 @@ Representing Interpolated Values: the ''mix()'' notation</h3>
473
483
whose syntax is defined as follows:
474
484
475
485
<pre class="prod">
476
- mix( <<percentage>> ; <<start-value>> ; <<end-value>> )
486
+ mix( <<percentage>> ';' <<start-value>> ';' <<end-value>> )
477
487
</pre>
478
488
479
489
<dl dfn-for="mix()">
@@ -2647,18 +2657,21 @@ Toggling Between Values: ''toggle()''</h3>
2647
2657
2648
2658
The syntax of the ''toggle()'' expression is:
2649
2659
2650
- <pre> toggle( <<toggle-value>> # )</pre>
2660
+ <pre> toggle( <<toggle-value>> [ ';' <<toggle-value>> ] + )</pre>
2651
2661
2652
2662
where <dfn><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.
2655
2664
If any of the values inside are not valid,
2656
2665
then the entire ''toggle()'' expression is invalid.
2657
2666
The ''toggle()'' expression may be used as the value of any property,
2658
2667
but must be the only component in that property's value.
2659
2668
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.
2662
2675
Declarations containing such constructs are invalid.
2663
2676
2664
2677
<div class="example">
0 commit comments