CSSNumericValue

Draft
This page is not complete.

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The CSSNumericValue interface of the CSS Typed Object Model API represents operations that all numeric values can perform.

Interfaces based on CSSNumericValue

Below is a list of interfaces based on the CSSNumericValue interface.

Properties

None.

Event handlers

No

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
TBD
CSSNumericValue.max
TBD
CSSNumericValue.equals
TBD
CSSNumericValue.to
TBD
CSSNumericValue.toSum
TBD
CSSNumericValue.type
TBD
CSSNumericValue.parse
TBD

Specifications

Specification Status Comment
CSS Typed OM Level 1
The definition of 'CSSNumericValue' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
CSSNumericValue
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?
add
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?
div
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?
equals
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?
max
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?
min
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?
mul
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?
parse
Experimental
Chrome Full support 66
Notes
Full support 66
Notes
Notes Not exposed to PaintWorklet.
Edge No support NoFirefox No support NoIE No support NoOpera Full support 53
Notes
Full support 53
Notes
Notes Not exposed to PaintWorklet.
Safari No support NoWebView Android Full support 66
Notes
Full support 66
Notes
Notes Not exposed to PaintWorklet.
Chrome Android Full support 66
Notes
Full support 66
Notes
Notes Not exposed to PaintWorklet.
Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53
Notes
Full support 53
Notes
Notes Not exposed to PaintWorklet.
Safari iOS No support NoSamsung Internet Android ?
sub
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?
to
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?
toSum
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?
type
Experimental
Chrome Full support 66Edge No support NoFirefox No support NoIE No support NoOpera Full support 53Safari No support NoWebView Android Full support 66Chrome Android Full support 66Edge Mobile No support NoFirefox Android No support NoOpera Android Full support 53Safari iOS No support NoSamsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
See implementation notes.
See implementation notes.

Document Tags and Contributors

Contributors to this page: jpmedley
Last updated by: jpmedley,