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.valueA float representing the number.
Note: If the
SVGNumberis read-only, aDOMExceptionwith 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) 2The 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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Update compatibility data on GitHub
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
SVGNumber
|
Chrome
Full support Yes |
Edge
Full support ≤18 |
Firefox
Full support Yes |
IE
? |
Opera
Full support Yes |
Safari
Full support Yes |
WebView Android
No support No |
Chrome Android
Full support Yes |
Firefox Android
Full support Yes |
Opera Android
Full support Yes |
Safari iOS
Full support Yes |
Samsung Internet Android
Full support Yes |
Legend
- Full support
- Full support
- No support
- No support
- Compatibility unknown
- Compatibility unknown
SVGNumber by Mozilla Contributors is licensed under CC-BY-SA 2.5.