CSS stroke-dasharray Property Reference

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

CSS stroke-dasharray Property Reference

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

Updated 2026-08-12

stroke-dasharray overview

The CSS stroke-dasharray 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-dasharray formal syntax
FieldValue
Formal syntaxnone | <dasharray>
Initial valuenone
Applies tolimitedSVGElementsShapes
InheritedYes
PercentagesreferToSVGViewportDiagonal
Computed valuelistEachItemConsistingOfAbsoluteLengthPercentageOrKeyword
Animation typerepeatableList
Mediavisual
Specification groupScalable Vector Graphics
StatusStandard

Practical examples

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

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

Description

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

References

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

Similar or alternative tools

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