8000
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 2b895ef commit 6357d03Copy full SHA for 6357d03
css-typed-om/Overview.bs
@@ -772,15 +772,15 @@ The following are the arithmetic operations you can perform on dimensions:
772
Here are a few examples of CSS values,
773
and their equivalent [=sum values=]:
774
775
- * ''1px'' becomes `«(1, «"px"→1»)»`
776
- * ''calc(1px + 1in)'' becomes `«(97, «"px"→1»)»`
+ * ''1px'' becomes `«(1, «["px" → 1]»)»`
+ * ''calc(1px + 1in)'' becomes `«(97, «["px" → 1]»)»`
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 * 2em)'' becomes `«(2, «"em"→1, "px"→1»)»`
+ * ''calc(1px + 2em)'' becomes `«(1, «["px" → 1]»), (2, «["em" → 1]»)»`
+ * ''calc(1px * 2em)'' becomes `«(2, «["em" → 1, "px" → 1]»)»`
781
* ''calc(1px + 1deg)'' can't be represented as a [=sum value=]
782
because it's an invalid computation
783
- * ''calc(1px * 1deg)'' becomes `«(2, «"deg"→1, "px"→1»)»`
+ * ''calc(1px * 1deg)'' becomes `«(2, «["deg" → 1, "px" → 1]»)»`
784
</div>
785
786
To <dfn lt="create a sum value|creating a sum value">create a sum value</dfn> from a {{CSSNumericValue}} |this|,
@@ -798,7 +798,7 @@ The following are the arithmetic operations you can perform on dimensions:
798
and change |unit| to the [=canonical unit=].
799
3. If |unit| is `"number"`,
800
return «(|value|, «»)».
801
- 3. Otherwise, return <code>«(|value|, «|unit|→1»)»</code>.
+ 3. Otherwise, return <code>«(|value|, «[|unit| → 1]»)»</code>.
802
803
804
: {{CSSMathSum}}
@@ -848,7 +848,7 @@ The following are the arithmetic operations you can perform on dimensions:
848
: {{CSSMathProduct}}
849
::
850
<div algorithm="sum value from CSSMathProduct">
851
- 1. Let |values| initially be the [=sum value=] «(1, «»)».
+ 1. Let |values| initially be the [=sum value=] «(1, «[ ]»)».
852
(I.e. what you'd get from ''1''.)
853
854
2. [=list/For each=] |item| in |this|’s {{CSSMathProduct/values}} internal slot: