SVGRect: y-Eigenschaft

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.

Die y-Eigenschaft des SVGRect-Interfaces ist ein Alias für die DOMRect.y-Eigenschaft. Sie beschreibt die vertikale Koordinate der Position des Elements. Sie spiegelt das y-Attribut des SVG-Elements und die CSS-y-Eigenschaft wider.

Ein <coordinate> ist eine Länge im Benutzerkoordinatensystem, die den gegebenen Abstand vom Ursprung des Benutzerkoordinatensystems entlang der entsprechenden Achse (der y-Achse für Y-Koordinaten, der x-Achse für X-Koordinaten) darstellt. Seine Syntax entspricht der von <length>.

Verwendungskontext

Name y
Wert <length> | <percentage>
Initialwert 0
Anwendbar auf <mask>, <svg>, <rect>, <image>, <foreignObject>
Vererbt nein
Prozentangaben beziehen sich auf die Größe des SVG-Viewports
Medien visuell
Berechneter Wert absolute Länge oder Prozentangabe
Animierbar ja

Spezifikationen

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-Kompatibilität

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
y

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

Siehe auch