The radius
attribute represents the radius (or radii) for the operation on a given <feMorphology>
filter primitive.
If two numbers are provided, the first number represents the x-radius and the second one the y-radius. If one number is provided, then that value is used for both x and y. The values are in the coordinate system established by the primitiveUnits
attribute on the <filter>
element.
A negative or zero value disables the effect of the given filter primitive (i.e., the result is the filter input image).
Usage notes
Value | <number-optional-number> |
---|---|
Default value | 0 |
Animatable | Yes |
Specifications
Specification | Status | Comment |
---|---|---|
Filter Effects Module Level 1 The definition of 'radius' in that specification. |
Working Draft | No change |
Scalable Vector Graphics (SVG) 1.1 (Second Edition) The definition of 'radius' in that specification. |
Recommendation | Initial definition |
Browser compatibility
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
radius | Chrome Full support Yes | Edge Full support 12 | Firefox Full support 4 | IE Full support Yes | Opera Full support 9 | Safari ? | WebView Android Full support Yes | Chrome Android Full support Yes | Firefox Android Full support 4 | Opera Android ? | Safari iOS ? | Samsung Internet Android Full support Yes |
Legend
- Full support
- Full support
- Compatibility unknown
- Compatibility unknown