GeezerVison is showing developer.mozilla.org — CSSNumericValue - Web APIs | MDN
CSSNumericValue
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Want more browser support for this feature? Tell us why.
CSSNumericValue.add
-
Adds a supplied number to the CSSNumericValue.
CSSNumericValue.sub
-
Subtracts a supplied number from the CSSNumericValue.
CSSNumericValue.mul
-
Multiplies the CSSNumericValue by the supplied value.
CSSNumericValue.div
-
Divides the CSSNumericValue by the supplied value.
CSSNumericValue.min
-
Returns the minimum value passed
CSSNumericValue.max
-
Returns the maximum value passed
CSSNumericValue.equals
-
Returns true if every value passed is the same as the CSSNumericValue, written with the same values and units, and false otherwise.
CSSNumericValue.to
-
Converts value into another one with the specified unit.
CSSNumericValue.toSum
-
Converts an existing CSSNumericValue into a CSSMathSum object with values of a specified unit.
CSSNumericValue.type
-
Returns the type of CSSNumericValue, one of angle, flex, frequency, length, resolution, percent, percentHint, or time.