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 068506b commit c157ab4Copy full SHA for c157ab4
css-typed-om/Overview.bs
@@ -1805,6 +1805,18 @@ is either null or a [=base type=] other than "percent".
1805
5. Return |finalType|.
1806
</div>
1807
1808
+<div algorithm>
1809
+ To <dfn export for=CSSNumericValue>invert a type</dfn> |type|,
1810
+ perform the following steps:
1811
+
1812
+ 1. Let |result| be a new [=type=]
1813
+ with an initially empty [=ordered map=]
1814
+ and an initially null [=percent hint=]
1815
+ 1. [=map/For each=] |unit| → |exponent| of |type|,
1816
+ set |result|[|unit|] to (-1 * |exponent|).
1817
+ 3. Return |result|.
1818
+</div>
1819
1820
A [=type=] is said to <dfn export for=CSSNumericValue>match</dfn> a CSS production in some circumstances:
1821
1822
* A [=type=] matches <<length>>
0 commit comments