SVGFEDropShadowElement: 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 y
schreibgeschützte Eigenschaft des SVGFEDropShadowElement
-Interfaces beschreibt die vertikale Koordinate der Position eines SVG-Filter-Primitives als SVGAnimatedLength
.
Sie spiegelt das y
-Attribut des <feDropShadow>
-Elements wider, das einen Schlagschatten eines Eingabebildes erzeugt. Das Attribut ist ein <length>
oder <percentage>
. Die <coordinate>
ist eine Länge im Benutzerkoordinatensystem, die den angegebenen Abstand vom Ursprung des Filters entlang der y-Achse darstellt. Wenn das y
-Attribut einen Prozentwert hat, ist der Eigenschaftswert relativ zur Höhe des Filterbereichs in Einheiten des Benutzerkoordinatensystems. Der Standardwert ist 0
.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feDropShadow = document.querySelector("feDropShadow");
const topPosition = feDropShadow.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
Siehe auch
SVGFEDropShadowElement.x
- CSS
drop-shadow()
-Funktion - CSS-
box-shadow
-Eigenschaft - CSS-
text-shadow
-Eigenschaft - CSS-
<blend-mode>
-Datentyp - CSS-
mix-blend-mode
-Eigenschaft