Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
The CSSNumericValue interface of the CSS Typed Object Model API represents operations that all numeric values can perform.
CSSStyleValue CSSNumericValueBelow is a list of interfaces based on the CSSNumericValue interface.
None.
Allows a CSSNumericValue to be constructed directly from a string containing CSS.
Adds a supplied number to the CSSNumericValue.
CSSNumericValue.subSubtracts a supplied number from the CSSNumericValue.
CSSNumericValue.mulMultiplies the CSSNumericValue by the supplied value.
CSSNumericValue.divDivides the CSSNumericValue by the supplied value.
CSSNumericValue.minReturns the minimum value passed
CSSNumericValue.maxReturns the maximum value passed
CSSNumericValue.equalsTrue if all the values are the exact same type and value, in the same order. Otherwise, false.
CSSNumericValue.toConverts value into another one with the specified unit.
CSSNumericValue.toSumConverts an existing CSSNumericValue into a CSSMathSum object with values of a specified unit.
CSSNumericValue.typeReturns the type of CSSNumericValue, one of angle, flex, frequency, length, resolution, percent, percentHint, or time.
| CSS Typed OM Level 1 # numeric-value |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Jul 18, 2023 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.