The width
read-only property of the
SVGImageElement
interface returns an SVGAnimatedLength
corresponding to the width
attribute of the given <image>
element.
Syntax
var width = svgImageElement.width;
Value
Specifications
Specification | Status | Comment |
---|---|---|
Scalable Vector Graphics (SVG) 2 The definition of 'width' in that specification. |
Candidate Recommendation | Initial definition. |
Browser compatibility
BCD tables only load in the browser