Back to Content

SVGRect: height property

files/en-us/web/api/svgrect/height/index.md

latest676 B
Original Source

{{APIRef("SVG")}}

The height property of the {{domxref("SVGRect")}} interface is an alias for the {{DOMXref("DOMRect.height")}} property. It describes the vertical size of the element. It reflects the SVG element's {{SVGattr("height")}} attribute and the CSS {{cssxref("height")}} property.

The height is a length; it is the distance from the top of element to the bottom of the element in the user coordinate system. Its syntax is the same as that for <length>.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{DOMXref("DOMRect.height")}}
  • {{domxref("SVGRect.width")}}