SVGFilterElement: width property - Web APIs | MDN

Value

An SVGAnimatedLength.

Example

js

const filter = document.querySelector("filter");
const horizontalSize = filter.width;
console.log(horizontalSize.baseVal.value); // the `width` value

Specifications

Specification
Filter Effects Module Level 1
# dom-svgfilterelement-width

Browser compatibility

See also

Help improve MDN

Learn how to contribute

This page was last modified on by MDN contributors.