SVGFEFloodElement: 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 July 2015.
Die schreibgeschützte y
-Eigenschaft der SVGFEFloodElement
-Schnittstelle beschreibt die vertikale Koordinate der Position eines SVG-Filterprimitives als SVGAnimatedLength
.
Sie entspricht dem y
-Attribut des <feFlood>
-Elements, das eine SVG-Filterunterregion mit der durch flood-color
und flood-opacity
definierten Farbe und Deckkraft ausfüllt. Das Attribut ist entweder ein <length>
oder ein <percentage>
. Das <coordinate>
ist eine Länge im Benutzer-Koordinatensystem, die den angegebenen Abstand vom Ursprung des Filters entlang der y-Achse darstellt. Wenn das y
-Attribut einen Prozentwert enthält, ist der Eigenschaftswert relativ zur Höhe der Filterregion in Einheiten des Benutzer-Koordinatensystems. Der Standardwert ist 0
.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feFlood = document.querySelector("feFlood");
const topPosition = feFlood.y;
console.log(topPosition.baseVal.value); // the `y` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterprimitivestandardattributes-y |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
y |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- Has more compatibility info.
Siehe auch
SVGFEFloodElement.x
- SVG-Filter-Leitfaden
- CSS-Datentyp
<blend-mode>
- CSS-Eigenschaft
mix-blend-mode