SVGFEMorphologyElement: height-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 height-Eigenschaft der SVGFEMorphologyElement-Schnittstelle beschreibt die vertikale Größe einer SVG-Filterprimitive als SVGAnimatedLength.

Sie spiegelt das height-Attribut des <feMorphology>-Elements wider. Das Attribut ist entweder eine \<length> oder ein \<percentage> relativ zur Höhe des Filterbereichs. Der Standardwert ist 100%. Der Eigenschaftswert ist eine Länge in Einheiten des Benutzerkoordinatensystems.

Wert

Beispiel

js
const feMorphology = document.querySelector("feMorphology");
const verticalSize = feMorphology.height;
console.log(verticalSize.baseVal.value); // the `height` value

Spezifikationen

Specification
Filter Effects Module Level 1
# dom-svgfilterprimitivestandardattributes-height

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
height

Legend

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

Full support
Full support

Siehe auch