Skip to content

Commit 55f9645

Browse files
committed
[css-values-5] Specify that normal simplification *is* done on the calculation (and basis if needed), same as math functions.
1 parent 65f6c90 commit 55f9645

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

css-values-5/Overview.bs

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3741,10 +3741,10 @@ calc-size/animation/interpolate-size-width-interpolation.html
37413741

37423742
Whether two ''calc-size()'' functions can be interpolated
37433743
depends on their [=calc-size basis=] values
3744-
(after being [=calc-size()/simplified for interpolation=]):
3744+
(after being [=calc-size()/prepared for interpolation=]):
37453745

37463746
<dl class=switch>
3747-
: If either function returned failure from being [=calc-size()/simplified for interpolation=]
3747+
: If either function returned failure from being [=calc-size()/prepared for interpolation=]
37483748
:: The values cannot be interpolated.
37493749

37503750
: If they are identical
@@ -3823,18 +3823,22 @@ calc-size/animation/interpolate-size-width-interpolation.html
38233823
<h4 id=simplifying-calc-size>
38243824
Simplifying ''calc-size()''</h4>
38253825

3826+
Identically to [=math functions=],
3827+
the [=calc-size calculation=]
3828+
(and [=calc-size basis=], if it's a <<calc-sum>>)
3829+
of a ''calc-size()'' function
3830+
is [=simplify a calculation tree|simplified=]
3831+
at [=specified value=] and [=computed value=] time.
3832+
38263833
Before [=interpolation=],
3827-
''calc-size()'' functions are [=calc-size()/simplified for interpolation=]
3834+
''calc-size()'' functions are [=calc-size()/prepared for interpolation=]
38283835
so their [=calc-size basises=] can be compared,
38293836
and their [=calc-size calculations=] can be interpolated properly.
3830-
3831-
Note: Unlike [=math functions=],
3832-
this simplification is <em>not</em> done at other times.
3833-
The simplification can fail due to substitution exploding,
3834-
similar to [[#long-substitution]].
3837+
This is a more involved process than [=simplifying a calculation tree=],
3838+
and can potentially fail.
38353839

38363840
<div algorithm>
3837-
To <dfn for=calc-size()>simplify for interpolation</dfn>
3841+
To <dfn for=calc-size()>prepare for interpolation</dfn>
38383842
a ''calc-size()'' function:
38393843

38403844
<ol>

0 commit comments

Comments
 (0)