Skip to content

Commit 3e8f5c9

Browse files
committed
[css-values-3] Define that nested calc()s are turned into parens.
1 parent 44ab94c commit 3e8f5c9

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

css-values/Overview.bs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1562,9 +1562,12 @@ Serialization</h4>
15621562

15631563
To serialize a ''calc()'' value:
15641564

1565-
1. Simplify the expression by
1566-
resolving all multiplications and divisions,
1567-
and combining compatible units.
1565+
1. Simplify the expression by:
1566+
1567+
* Replacing nested ''calc()'' values with parentheses containing their contents
1568+
* Resolving all multiplications and divisions
1569+
* Combining compatible units
1570+
15681571
(Which units are compatible can vary based on what stage of the value computation pipeline it's in.
15691572
For example, as a specified value, ''px'' and ''em'' are incompatible;
15701573
as a computed value, they're compatible.)

0 commit comments

Comments
 (0)