Skip to content

Commit aed5db3

Browse files
committed
[css-values-4] Fix computed value and validity of mix()
1 parent e939983 commit aed5db3

File tree

1 file changed

+18
-17
lines changed

1 file changed

+18
-17
lines changed

css-values-4/Overview.bs

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -582,15 +582,24 @@ Representing Interpolated Values: the ''mix()'' notation</h3>
582582
rather than the more typical comma
583583
because the values themselves can contain commas.
584584

585-
The computed value of ''mix()'' is
586-
the result of interpolating the two <<declaration-value>>s
587-
to the progress given by the <<percentage>>,
588-
using the interpolation rules for the property
589-
in which this function is used.
590-
591-
A ''mix()'' notation is invalid if either of its <<declaration-value>>s
592-
are invalid when interpreted as a whole value
593-
for the property the function is used in,
585+
If the two <<declaration-value>s in ''mix()'' are [=interpolation|interpolable=]
586+
(without using ''mix()'' itself)
587+
as values for the property in which it is specified,
588+
the [=computed value=] of ''mix()'' is
589+
the result of interpolating these two values
590+
to the progress given by the <<percentage>>.
591+
Otherwise,
592+
the [=computed value=] of ''mix()'' is
593+
the ''mix()'' [=functional notation=] itself
594+
with its <<percentage>> computed
595+
and both <<declaration-value>>s computed
596+
as values for this property.
597+
598+
A ''mix()'' notation is invalid
599+
if it is not the sole value of the property;
600+
if either of its <<declaration-value>>s
601+
are invalid when specified as the entire value
602+
for the property the function is used in;
594603
or if the property using it is [=not animatable=].
595604

596605
<div class="example">
@@ -608,18 +617,10 @@ Representing Interpolated Values: the ''mix()'' notation</h3>
608617
</pre>
609618
</div>
610619

611-
ISSUE(6700):
612-
Define more precisely where mix() is allowed.
613-
Is it a top-level functional notation only?
614-
Or can it be nested more deeply in the grammar somehow?
615-
616620
Progress values below ''0%'' and above ''100%'' are valid;
617621
they represent interpolation beyond the range represented
618622
by the start and end values.
619623

620-
ISSUE(6245): Incorporate interpolation along an easing line.
621-
622-
623624
<h3 id="combining-range">
624625
Range Checking</h3>
625626

0 commit comments

Comments
 (0)