Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions css-typed-om/Overview.bs
Original file line number Diff line number Diff line change
Expand Up @@ -2535,6 +2535,33 @@ CSS <<number>>, <<percentage>>, and <<dimension>> values become {{CSSNumericValu
</pre>
</div>

<div class=example>
Note that addition and multiplication are N-ary,
so ''calc(1px + 2px + 3px)''
produces the structure:

<pre>
CSSMathSum(
CSS.px(1),
CSS.px(2),
CSS.px(3)
)
</pre>

but ''calc(calc(1px + 2px) + 3px)''
produces the structure:

<pre>
CSSMathSum(
CSSMathSum(
CSS.px(1),
CSS.px(2)
),
CSS.px(3)
)
</pre>
</div>

Note: The value computation process may transform different units into identical ones,
simplifying the resulting expression.
For example, ''calc(1px + 2em)'' as a specified value
Expand Down