SVGFilterElement

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.

The SVGFilterElement interface provides access to the properties of <filter> elements, as well as methods to manipulate them.

EventTarget Node Element SVGElement SVGFilterElement

Instance properties

SVGFilterElement.href Read only

An SVGAnimatedString that corresponds to the href or xlink:href Deprecated attribute of the given <filter> element.

SVGFilterElement.filterUnits Read only

An SVGAnimatedEnumeration that corresponds to the filterUnits attribute of the given <filter> element. Takes one of the constants defined in SVGUnitTypes.

SVGFilterElement.primitiveUnits Read only

An SVGAnimatedEnumeration that corresponds to the primitiveUnits attribute of the given <filter> element. Takes one of the constants defined in SVGUnitTypes.

SVGFilterElement.x Read only

An SVGAnimatedLength that corresponds to the x attribute on the given <filter> element.

SVGFilterElement.y Read only

An SVGAnimatedLength that corresponds to the y attribute of the given <filter> element.

SVGFilterElement.width Read only

An SVGAnimatedLength that corresponds to the width attribute of the given <filter> element.

SVGFilterElement.height Read only

An SVGAnimatedLength that corresponds to the height attribute of the given <filter> element.

Specifications

Specification
Filter Effects Module Level 1
# InterfaceSVGFilterElement

Browser compatibility

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
SVGFilterElement
filterUnits
height
href
primitiveUnits
width
x
y

Legend

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

Full support
Full support

See also