CSS Click Chart

currentColor Keyword Value

A keyword value that allows an element to inherit the current computed color value rather than explicitly declaring a color.

Specification

currentColor color keyword on W3C

Example Code

Live Demonstration

The element below inherits its background color from its parent's color value.

Browser Support

Can I Use currentcolor? Data on support for the currentcolor feature across the major browsers from caniuse.com.

Tools / Polyfills

Tutorials / Articles