CSS stroke-color Property Reference

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

CSS stroke-color Property Reference

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

Updated 2026-08-12

stroke-color overview

The CSS stroke-color property is a experimental 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-color formal syntax
FieldValue
Formal syntax<color>
Initial valuetransparent
Applies totextAndSVGShapes
InheritedYes
Percentagesno
Computed valuecomputedColor
Animation typebyComputedValue
Mediavisual
Specification groupScalable Vector Graphics
StatusExperimental

Practical examples

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

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

Related references

Description

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

References

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

Similar or alternative tools

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