SVGFEColorMatrixElement: 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 Juli 2015.
Die height schreibgeschützte Eigenschaft des SVGFEColorMatrixElement-Interfaces beschreibt die vertikale Größe eines SVG-Filterprimitivs als ein SVGAnimatedLength.
Sie spiegelt das <feColorMatrix>-Elementattribut height des Filterprimitivs wider. Der <feColorMatrix>-Filter wendet eine Matrixtransformation auf die RGB-Farb- und Alpha-Werte an.
Das Attribut ist ein \<length> oder ein <percentage> relativ zur Höhe der Filterregion. Der Standardwert ist 100%. Der Eigenschaftswert ist eine Länge in Einheiten des Benutzerkoordinatensystems.
Wert
Ein SVGAnimatedLength.
Beispiel
js
const feColorMatrix = document.querySelector("feColorMatrix");
const verticalSize = feColorMatrix.height;
console.log(verticalSize.baseVal.value); // the `height` value
Spezifikationen
| Specification |
|---|
| Filter Effects Module Level 1> # dom-svgfilterprimitivestandardattributes-height> |
Browser-Kompatibilität
Siehe auch
SVGFEColorMatrixElement.width- CSS
<blend-mode>Datentyp - CSS
mix-blend-modeEigenschaft - CSS-Filter-Effekte
- SVG
<filter>-Element, SVGfilterAttribut in SVG - Anwenden von SVG-Effekten auf HTML-Inhalte