Skip to content

Commit dfcce40

Browse files
committed
[css-values-4] Fully omitting a mix() argument is fine (you don't need to use whitespace). w3c#8556
1 parent 72d9aca commit dfcce40

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

css-values-4/Overview.bs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ Representing Interpolated Values: the ''mix()'' notation</h3>
548548
whose syntax is defined as follows:
549549

550550
<pre class="prod">
551-
&lt;mix()> = mix( <<percentage>> ';' <<declaration-value>> ';' <<declaration-value>> )
551+
&lt;mix()> = mix( <<percentage>> ';' <<declaration-value>>? ';' <<declaration-value>>? )
552552
</pre>
553553

554554
<dl dfn-for="mix()">
@@ -565,6 +565,13 @@ Representing Interpolated Values: the ''mix()'' notation</h3>
565565
The second <<declaration-value>> represents
566566
the value at the “end” (100%) of the interpolation range,
567567
interpreted the same.
568+
569+
Either value can be omitted,
570+
to refer to an empty value
571+
(this is valid in [=custom properties=], such as ''--foo:;'').
572+
The separating '';'' cannot be omitted;
573+
for example, a ''mix()'' with an empty starting value
574+
would be written like ''mix(50%;;bar)''.
568575
</dl>
569576

570577
Note: This [=functional notation=] uses semicolons to separate arguments
@@ -5180,6 +5187,8 @@ Recent Changes</h3>
51805187
(<a href="https://github.com/w3c/csswg-drafts/issues/8527">Issue 8527</a>)
51815188
<li>Specified that negative <<resolution>> values are out-of-range by definition.
51825189
(<a href="https://github.com/w3c/csswg-drafts/issues/8532">Issue 8532</a>)
5190+
<li>Clarified that fully omitted ''mix()'' arguments are valid.
5191+
(<a href="https://github.com/w3c/csswg-drafts/issues/8556">Issue 8556</a>)
51835192
</ul>
51845193

51855194
Substantial changes since <a href="https://www.w3.org/TR/2021/WD-css-values-4-20211016/">16 October 2021 WD</a>:

0 commit comments

Comments
 (0)