SVGFilterElement: 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
schreibgeschützte Eigenschaft der SVGFilterElement
-Schnittstelle beschreibt die horizontale Größe einer SVG-Filterprimitive als ein SVGAnimatedLength
.
Sie spiegelt das width
-Attribut des <filter>
-Elements wider. Das Attribut ist ein <length>
oder ein <percentage>
relativ zur Breite der Filterregion. Der Standardwert ist 100%
. Der Eigenschaftswert ist eine Länge in Benutzersystemkoordinateneinheiten.
Wert
Ein SVGAnimatedLength
.
Beispiel
const filter = document.querySelector("filter");
const horizontalSize = filter.width;
console.log(horizontalSize.baseVal.value); // the `width` value
Spezifikationen
Specification |
---|
Filter Effects Module Level 1 # dom-svgfilterelement-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
Siehe auch
- SVG-Leitfaden: Filtereffekte
- SVG-Filterprimitive-Attribute
- CSS
<blend-mode>
Datentyp - CSS
mix-blend-mode
Eigenschaft