css.properties

stroke-color

The stroke-color property specifies the color of SVG strokes.

Experimental โ€” This feature is experimental and may change

Formal Syntax

stroke-color = <color># <color> = <color-base> | currentColor | <system-color> | <contrast-color()> | <device-cmyk()> | <light-dark()>

See specification

JavaScript Access

// Access via element.style element.style.strokeColor = "transparent";

Browser Support

experimental, standard | Spec

FeatureChromeFirefoxSafariEdge
stroke-colorโ€”โ€”11.1โ€”
currentColorโ€”โ€”11.1โ€”
transparentโ€”โ€”11.1โ€”

Related Properties