SVGRect: y property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
The y
property of the SVGRect
interface is an alias for the DOMRect.y
property. It describes the vertical coordinate of the position of the element. It reflects the SVG element's y
attribute and the CSS 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>
.
Usage context
Name | y |
---|---|
Value |
<length> | <percentage>
|
Initial | 0 |
Applies to |
<mask> ,
<svg> ,
<rect> ,
<image> ,
<foreignObject>
|
Inherited | no |
Percentages | refer to the size of the SVG viewport |
Media | visual |
Computed value | absolute length or percentage |
Animatable | yes |
Specifications
No specification found
No specification data found for api.SVGRect.y
.
Check for problems with this page or contribute a missing spec_url
to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
Browser compatibility
BCD tables only load in the browser