CSS stroke-dashoffset Property Reference

The CSS stroke-dashoffset property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

CSS stroke-dashoffset Property Reference

The CSS stroke-dashoffset property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

Updated 2026-08-12

stroke-dashoffset overview

The CSS stroke-dashoffset property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

The computed value normally inherits from the parent element when no declaration wins the cascade.

Syntax and formal definition

stroke-dashoffset formal syntax
FieldValue
Formal syntax<length-percentage> | <number>
Initial value0
Applies tolimitedSVGElementsShapes
InheritedYes
PercentagesreferToSVGViewportDiagonal
Computed valueabsoluteLengthOrPercentageNumbersConverted
Animation typebyComputedValueType
Mediavisual
Specification groupScalable Vector Graphics
StatusStandard

Practical examples

These declarations demonstrate valid ways to set stroke-dashoffset. The initial and inherit global keywords remain available even when a property-specific value is preferable.

stroke-dashoffset live example
CSS .reset-example { stroke-dashoffset: initial; } .inherit-example { stroke-dashoffset: inherit; } @supports (stroke-dashoffset: initial) { .supported { stroke-dashoffset: initial; } }

Description

The CSS stroke-dashoffset property is a standard property in Scalable Vector Graphics. Review its formal syntax, computed behavior, and practical declarations.

References

  1. MDN: stroke-dashoffset
  2. MDN: CSS Properties Reference

Similar or alternative tools

Don't forget to set a bookmark for tool.io!
Privacy | Imprint | Cookies