« SVG Attribute reference home
The y
attribute indicates a y-axis coordinate in the current SVG coordinate system. The exact effect of this coordinate depends on the element. Most of the time, it represent the y-axis coordinate of the upper-left corner of the bounding box of the reference element, positioning the element vertically.
If the attribute is not specified, the default value is 0, except for the {{ SVGElement("filter") }} and {{ SVGElement("mask") }} elements where the default is -10%.
Usage
{{ page("/en/SVG/Content_type","coordinate") }}
Elements
The following elements can use the y
attribute
- Filter primitive elements »
- {{ SVGElement("altGlyph") }}
- {{ SVGElement("fePointLight") }}
- {{ SVGElement("feSpotLight") }}
- {{ SVGElement("filter") }}
- {{ SVGElement("foreignObject") }}
- {{ SVGElement("glyphRef") }}
- {{ SVGElement("image") }}
- {{ SVGElement("pattern") }}
- {{ SVGElement("rect") }}
- {{ SVGElement("svg") }}
- {{ SVGElement("text") }}
- {{ SVGElement("use") }}
- {{ SVGElement("mask") }}
- {{ SVGElement("tref") }}
- {{ SVGElement("tspan") }}