Skip to content

Commit 93cfed2

Browse files
committed
Explicitly disallow commas in toggle's <value>, just to make it clearer.
1 parent 68524df commit 93cfed2

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

css3-values/Overview.html

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,11 +1574,12 @@ <h3 id=toggle-notation><span class=secno>8.2. </span> Toggling Between
15741574
<pre>toggle( &lt;value># )</pre>
15751575

15761576
<p> where <var>&lt;value></var> is any CSS value that is valid where the
1577-
expression is placed. If any of the values inside are not valid, then the
1578-
entire ‘<a href="#toggle"><code class=css>toggle()</code></a>
1579-
expression is invalid. The ‘<a href="#toggle"><code
1580-
class=css>toggle()</code></a>’ expression may be used as the value of
1581-
any property (but must be the only component in that property's value).
1577+
expression is placed, and which doesn't contain any top-level commas. If
1578+
any of the values inside are not valid, then the entire ‘<a
1579+
href="#toggle"><code class=css>toggle()</code></a>’ expression is
1580+
invalid. The ‘<a href="#toggle"><code class=css>toggle()</code></a>
1581+
expression may be used as the value of any property (but must be the only
1582+
component in that property's value).
15821583

15831584
<p class=note> Note that because toggled values are separated by commas,
15841585
they cannot themselves include top-level commas.

css3-values/Overview.src.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1113,7 +1113,8 @@ <h3 id="toggle-notation">
11131113

11141114
<p>
11151115
where <var>&lt;value></var> is any CSS value
1116-
that is valid where the expression is placed.
1116+
that is valid where the expression is placed,
1117+
and which doesn't contain any top-level commas.
11171118
If any of the values inside are not valid,
11181119
then the entire ''toggle()'' expression is invalid.
11191120
The ''toggle()'' expression may be used as the value of any property

0 commit comments

Comments
 (0)