The SVGFilterElement
interface provides access to the properties of <filter>
elements, as well as methods to manipulate them.
On this page
SVGFilterElement
Instance properties
SVGFilterElement.href
Read only-
An
SVGAnimatedString
that corresponds to thehref
orxlink:href
Deprecated attribute of the given<filter>
element. SVGFilterElement.filterUnits
Read only-
An
SVGAnimatedEnumeration
that corresponds to thefilterUnits
attribute of the given<filter>
element. Takes one of the constants defined inSVGUnitTypes
. SVGFilterElement.primitiveUnits
Read only-
An
SVGAnimatedEnumeration
that corresponds to theprimitiveUnits
attribute of the given<filter>
element. Takes one of the constants defined inSVGUnitTypes
. SVGFilterElement.x
Read only-
An
SVGAnimatedLength
that corresponds to thex
attribute on the given<filter>
element. SVGFilterElement.y
Read only-
An
SVGAnimatedLength
that corresponds to they
attribute of the given<filter>
element. SVGFilterElement.width
Read only-
An
SVGAnimatedLength
that corresponds to thewidth
attribute of the given<filter>
element. SVGFilterElement.height
Read only-
An
SVGAnimatedLength
that corresponds to theheight
attribute of the given<filter>
element. SVGFilterElement.filterResX
Read only Deprecated-
An
SVGAnimatedInteger
that contains the X component of thefilterRes
attribute of the given<filter>
element. SVGFilterElement.filterResY
Read only Deprecated-
An
SVGAnimatedInteger
that contains the Y component of thefilterRes
attribute of the given<filter>
element.
Instance methods
SVGFilterElement.setFilterRes()
Deprecated-
Sets the values of the
filterRes
attribute.
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 | 4.4 | 18 | 4 | ≤12.1 | 6 | 1.0 |
filterUnits |
5 | 12 | 3 | 10 | ≤12.1 | 6 | 4.4 | 18 | 4 | ≤12.1 | 6 | 1.0 |
height |
5 | 12 | 3 | 10 | ≤12.1 | 6 | 4.4 | 18 | 4 | ≤12.1 | 6 | 1.0 |
href |
5 | 12 | 3 | 10 | ≤12.1 | 6 | 4.4 | 18 | 4 | ≤12.1 | 6 | 1.0 |
primitiveUnits |
5 | 12 | 3 | 10 | ≤12.1 | 6 | 4.4 | 18 | 4 | ≤12.1 | 6 | 1.0 |
width |
5 | 12 | 3 | 10 | ≤12.1 | 6 | 4.4 | 18 | 4 | ≤12.1 | 6 | 1.0 |
x |
5 | 12 | 3 | 10 | ≤12.1 | 6 | 4.4 | 18 | 4 | ≤12.1 | 6 | 1.0 |
y |
5 | 12 | 3 | 10 | ≤12.1 | 6 | 4.4 | 18 | 4 | ≤12.1 | 6 | 1.0 |
See also
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/SVGFilterElement