stroke-color
Limited availability16% of users
An experimental property (mainly supported in Safari) that allows you to set the color of an SVG path or text stroke using standard CSS color values.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyComingNot in Chrome, Edge or Firefox yet, so not every major browser supports it.
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
transparent- Inherited
- Yes
- Applies to
- text and SVG shapes
- Animation type
- byComputedValue
Quick example
.map-boundary {
/* Sets the border (stroke) color of an SVG shape */
stroke-color: var(--brand-primary);
}stroke-color browser support
BaselineLimited availabilityThis feature is not Baseline because it does not work in some of the most widely-used browsers.Not ready for production without a fallback.
Usage16%of people can use this84% use a browser without it.
Browsers
11.1+Mobile
11.3+iOS