We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

SVGNumber

The SVGNumber interface corresponds to the <number> basic data type.

An SVGNumber object can be designated as read only, which means that attempts to modify the object will result in an exception being thrown.

Properties

SVGNumber.value
A float representing the number.

Note: If the SVGNumber is read-only, a DOMException with the code NO_MODIFICATION_ALLOWED_ERR is raised on an attempt to change the value.

Methods

This interface doesn't provide any specific methods.

Specifications

Specification Status Comment
Scalable Vector Graphics (SVG) 2
The definition of 'SVGNumber' in that specification.
Candidate Recommendation No change
Scalable Vector Graphics (SVG) 1.1 (Second Edition)
The definition of 'SVGNumber' in that specification.
Recommendation Initial definition

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support ? Yes ? ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support No ? Yes ? ? ? ?

Document Tags and Contributors

Contributors to this page: fscholz, Sebastianz, mattwojo, kscarfone, Sheppy, Jeremie
Last updated by: fscholz,