Back to Content

SVGRect: y property

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

latest760 B
Original Source

{{APIRef("SVG")}}

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

A <coordinate> is a length in the user coordinate system that is the given distance from the origin of the user coordinate system along the relevant axis (the y-axis for Y coordinates, the x-axis for X coordinates). Its syntax is the same as that for <length>.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • {{DOMXref("DOMRect.y")}}
  • {{domxref("SVGRect.x")}}