CSS path-length Property Reference
The CSS path-length property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.
Updated 2026-08-12
path-length overview
The CSS path-length 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 | none | <length> [0,∞] |
| Initial value | none |
| Applies to | pathCircleEllipseLinePolygonPolylineRect |
| Inherited | No |
| Percentages | no |
| Computed value | noneOrAbsoluteLength |
| Animation type | byComputedValue |
| Media | visual |
| Specification group | Scalable Vector Graphics |
| Status | Standard |
Practical examples
These declarations demonstrate valid ways to set path-length. The initial and inherit global keywords remain available even when a property-specific value is preferable.
CSS
.reset-example {
path-length: initial;
}
.inherit-example {
path-length: inherit;
}
@supports (path-length: initial) {
.supported {
path-length: initial;
}
}