CSSNumericValueLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Learn moreSee full compatibilityReport feedbackThe CSSNumericValue interface of the CSS Typed Object Model API represents operations that all numeric values can perform. CSSStyleValue CSSNumericValue Interfaces based on CSSNumericValueBelow is a list of interfaces based on the CSSNumericValue interface. CSSMathClamp CSSMathInvert CSSMathMax CSSMathMin CSSMathNegate CSSMathProduct CSSMathSum CSSMathValue CSSNumericArray CSSUnitValue Instance propertiesNone.Static methods CSSNumericValue.parse Allows a CSSNumericValue to be constructed directly from a string containing CSS. Instance methods 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 True if all the values are the exact same type and value, in the same order. Otherwise, false. 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. SpecificationsSpecificationCSS Typed OM Level 1 # numeric-valueBrowser compatibilitydesktopmobileChromeEdgeFirefoxOperaSafariChrome AndroidFirefox for AndroidOpera AndroidSafari on iOSSamsung InternetWebView AndroidWebView on iOSCSSNumericValueChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyaddChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historydivChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyequalsChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historymaxChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyminChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historymulChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historyparse() static methodChrome – Full supportChrome66footnoteToggle historyEdge – Full supportEdge79footnoteToggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53footnoteToggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66footnoteToggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47footnoteToggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0footnoteToggle historyWebView Android – Full supportWebView Android66footnoteToggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historysubChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historytoChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historytoSumChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historytypeChrome – Full supportChrome66Toggle historyEdge – Full supportEdge79Toggle historyFirefox – No supportFirefoxNofootnoteToggle historyOpera – Full supportOpera53Toggle historySafari – Full supportSafari16.4Toggle historyChrome Android – Full supportChrome Android66Toggle historyFirefox for Android – No supportFirefox for AndroidNofootnoteToggle historyOpera Android – Full supportOpera Android47Toggle historySafari on iOS – Full supportSafari on iOS16.4Toggle historySamsung Internet – Full supportSamsung Internet9.0Toggle historyWebView Android – Full supportWebView Android66Toggle historyWebView on iOS – Full supportWebView on iOS16.4Toggle historySee also CSSImageValue CSSKeywordValue CSSPositionValue CSSTransformValue CSSUnparsedValue