Web/API/SVGFilterElement

From Get docs


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

Properties

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.
SVGFilterElement.filterResX Read only '
An SVGAnimatedInteger that contains the X component of the filterRes attribute of the given <filter> element.
SVGFilterElement.filterResY Read only '
An SVGAnimatedInteger that contains the Y component of the filterRes attribute of the given <filter> element.

Methods

SVGFilterElement.setFilterRes() '
Sets the values of the filterRes attribute.

Specifications

Specification Status Comment
Filter Effects Module Level 1The definition of 'SVGFilterElement' in that specification. Working Draft Removed the inheritance from SVGLangSpace, SVGExternalResourcesRequired, SVGStylable, and SVGUnitTypes and removed the setFilterRes() function
Scalable Vector Graphics (SVG) 1.1 (Second Edition)The definition of 'SVGFilterElement' in that specification. Recommendation Initial definition

Browser compatibility

Update compatibility data on GitHub

Desktop Mobile
Chrome Edge Firefox Internet Explorer Opera Safari Android webview Chrome for Android Firefox for Android Opera for Android Safari on iOS Samsung Internet
SVGFilterElement Chrome

Full support Yes

Edge

Full support ≤18

Firefox

Full support Yes

IE

?

Opera

Full support Yes

Safari

Full support Yes

WebView Android

Full support Yes

Chrome Android

Full support Yes

Firefox Android

Full support Yes

Opera Android

Full support Yes

Safari iOS

Full support Yes

Samsung Internet Android

Full support Yes

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown


See also