SVGFEMergeElement: `width`-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 width
-Eigenschaft der SVGFEMergeElement
-Schnittstelle ist eine schreibgeschützte Eigenschaft, die die horizontale Größe eines SVG-Filterprimitivs als SVGAnimatedLength
beschreibt.
Sie entspricht dem width
-Attribut des <feMerge>
-Elements. Das Attribut ist eine \<length>
oder ein \<percentage>
relativ zur Breite der Filterregion. Der Standardwert ist 100%
. Der Wert der Eigenschaft ist eine Länge in Einheiten des Benutzerkoordinatensystems.
Wert
Ein SVGAnimatedLength
.
Beispiel
const feMerge = document.querySelector("feMerge");
const horizontalSize = feMerge.width;
console.log(horizontalSize.baseVal.value); // the `width` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterprimitivestandardattributes-width |
Browser-Kompatibilität
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
width |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support