This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
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).
You can use this attribute with the following SVG elements:
| Value | <number-optional-number> |
|---|---|
| Default value | 0 |
| Animatable | Yes |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
radius |
5 | 12 | 3 | 9 | 6 | 18 | 4 | 10.1 | 6 | 1.0 | 4.4 | 6 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/radius