SVGFESpecularLightingElement: 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 SVGFESpecularLightingElement-Schnittstelle beschreibt die horizontale Größe eines SVG-Filter-Primitivs als SVGAnimatedLength.

Sie spiegelt das width-Attribut des <feSpecularLighting>-Elements wider, das eine Quellgrafik unter Verwendung des Alphakanals als Bump-Map beleuchtet. Das Attribut ist eine \<length> oder ein \<percentage>-Wert relativ zur Breite des Filterbereichs. Der Standardwert ist 100%. Der Eigenschaftswert ist eine Länge in Benutzereinheit-Koordinatensystemeinheiten.

Wert

Beispiel

js
const feSpecularLighting = document.querySelector("feSpecularLighting");
const horizontalSize = feSpecularLighting.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 GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
width

Legend

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

Full support
Full support

Siehe auch