Skip to content

Commit f907b93

Browse files
committed
Add a % example to the sum value text.
1 parent 6357d03 commit f907b93

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

css-typed-om/Overview.bs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -777,6 +777,10 @@ The following are the arithmetic operations you can perform on dimensions:
777777
(because ''in'' and ''px'' are [=compatible units=],
778778
and ''px'' is the [=canonical unit=] for them)
779779
* ''calc(1px + 2em)'' becomes `«(1, «["px" → 1]»), (2, «["em" → 1]»)»`
780+
* ''calc(1px + 2%)'' becomes `«(1, «["px" → 1]»), (2, «["percent" → 1]»)»`
781+
(percentages are allowed to add to other units,
782+
but aren't resolved into another unit,
783+
like they are in a [=type=])
780784
* ''calc(1px * 2em)'' becomes `«(2, «["em" → 1, "px" → 1]»)»`
781785
* ''calc(1px + 1deg)'' can't be represented as a [=sum value=]
782786
because it's an invalid computation

0 commit comments

Comments
 (0)