Skip to content

Commit bb4f520

Browse files
committed
[css-values-4] Partially-simplify min/max(), per w3c#4756.
1 parent 03d17ab commit bb4f520

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

css-values-4/Overview.bs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4072,6 +4072,24 @@ Simplification</h4>
40724072
expressed in the result's [=canonical unit=].
40734073

40744074
5. Return |root|.
4075+
4076+
8. If |root| is a Min or Max node:
4077+
4078+
1. [=For each=] node |child| of |root|’s children:
4079+
4080+
If |child| is a numeric value
4081+
with a unit other than "percent",
4082+
and there are other children of |root|
4083+
that are numeric values with the same unit,
4084+
combine all such children
4085+
with the appropriate operator per |root|,
4086+
and replace |child| with the result,
4087+
removing all other child nodes involved.
4088+
4089+
2. If |root| now has only a single child,
4090+
return that child.
4091+
Otherwise, return |root|.
4092+
40754093
</div>
40764094

40774095
<h3 id='calc-computed-value'>

0 commit comments

Comments
 (0)