CSS rx Property Reference
The CSS rx property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
rx overview
The CSS rx property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.
The property is not inherited by default. Use an explicit global keyword when inheritance is intended.
Syntax and formal definition
| Field | Value |
|---|---|
| Formal syntax | <length-percentage> | auto |
| Initial value | auto |
| Applies to | limitedSVGElementsEllipseRect |
| Inherited | No |
| Percentages | referToSVGViewportWidth |
| Computed value | percentageAsSpecifiedOrAbsoluteLength |
| Animation type | byComputedValueType |
| Media | visual |
| Specification group | Scalable Vector Graphics |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set rx. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
rx: initial;
}
.inherit-example {
rx: inherit;
}
@supports (rx: initial) {
.supported {
rx: initial;
}
}