SVGFilterElement
The SVGFilterElement interface provides access to the properties of <filter> elements, as well as methods to manipulate them.
Properties
-
SVGFilterElement.hrefRead only -
An
SVGAnimatedStringthat corresponds to thehreforxlink:hrefattribute of the given<filter>element. -
SVGFilterElement.filterUnitsRead only -
An
SVGAnimatedEnumerationthat corresponds to thefilterUnitsattribute of the given<filter>element. Takes one of the constants defined inSVGUnitTypes. -
SVGFilterElement.primitiveUnitsRead only -
An
SVGAnimatedEnumerationthat corresponds to theprimitiveUnitsattribute of the given<filter>element. Takes one of the constants defined inSVGUnitTypes. -
SVGFilterElement.xRead only -
An
SVGAnimatedLengththat corresponds to thexattribute on the given<filter>element. -
SVGFilterElement.yRead only -
An
SVGAnimatedLengththat corresponds to theyattribute of the given<filter>element. -
SVGFilterElement.widthRead only -
An
SVGAnimatedLengththat corresponds to thewidthattribute of the given<filter>element. -
SVGFilterElement.heightRead only -
An
SVGAnimatedLengththat corresponds to theheightattribute of the given<filter>element. -
SVGFilterElement.filterResXRead only -
An
SVGAnimatedIntegerthat contains the X component of thefilterResattribute of the given<filter>element. -
SVGFilterElement.filterResYRead only -
An
SVGAnimatedIntegerthat contains the Y component of thefilterResattribute of the given<filter>element.
Methods
-
SVGFilterElement.setFilterRes() -
Sets the values of the
filterResattribute.
Specifications
Browser compatibility
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
SVGFilterElement |
5 |
12 |
3 |
10 |
≤12.1 |
6 |
≤37 |
18 |
4 |
≤12.1 |
6 |
1.0 |
filterUnits |
5 |
12 |
3 |
10 |
≤12.1 |
6 |
≤37 |
18 |
4 |
≤12.1 |
6 |
1.0 |
height |
5 |
12 |
3 |
10 |
≤12.1 |
6 |
≤37 |
18 |
4 |
≤12.1 |
6 |
1.0 |
href |
5 |
12 |
3 |
10 |
≤12.1 |
6 |
≤37 |
18 |
4 |
≤12.1 |
6 |
1.0 |
primitiveUnits |
5 |
12 |
3 |
10 |
≤12.1 |
6 |
≤37 |
18 |
4 |
≤12.1 |
6 |
1.0 |
width |
5 |
12 |
3 |
10 |
≤12.1 |
6 |
≤37 |
18 |
4 |
≤12.1 |
6 |
1.0 |
x |
5 |
12 |
3 |
10 |
≤12.1 |
6 |
≤37 |
18 |
4 |
≤12.1 |
6 |
1.0 |
y |
5 |
12 |
3 |
10 |
≤12.1 |
6 |
≤37 |
18 |
4 |
≤12.1 |
6 |
1.0 |
See also
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement