Back to Content

SVGImageElement: width property

files/en-us/web/api/svgimageelement/width/index.md

latest368 B
Original Source

{{APIRef("SVG")}}

The width read-only property of the {{domxref("SVGImageElement")}} interface returns an {{domxref("SVGAnimatedLength")}} corresponding to the {{SVGAttr("width")}} attribute of the given {{SVGElement("image")}} element.

Value

An {{domxref("SVGAnimatedLength")}}.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}