css.properties

fill-color

The fill-color property specifies the fill color of an SVG element.

Draft โ€” This property is defined in a W3C Draft and may be subject to change

Formal Syntax

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

See specification

JavaScript Access

// Access via element.style element.style.fillColor = "currentcolor";

Browser Support

This property is defined in a W3C Draft and may be subject to change. Browser support data is not yet available.

Related Properties