We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6357d03 commit f907b93Copy full SHA for f907b93
css-typed-om/Overview.bs
@@ -777,6 +777,10 @@ The following are the arithmetic operations you can perform on dimensions:
777
(because ''in'' and ''px'' are [=compatible units=],
778
and ''px'' is the [=canonical unit=] for them)
779
* ''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=])
784
* ''calc(1px * 2em)'' becomes `«(2, «["em" → 1, "px" → 1]»)»`
785
* ''calc(1px + 1deg)'' can't be represented as a [=sum value=]
786
because it's an invalid computation
0 commit comments