Widely Available
Color types
id: currentcolor
currentColor
The
currentColor CSS value allows you to reuse an element's computed text color for other properties.
Baseline Status:
Achieved Widely Available on Jan 29, 2018 (Cross-browser Newly Available since Jul 29, 2015).
Desktop Browser Engine Support
Google Chrome
1
Supported
Mozilla Firefox
1.5
Supported
Apple Safari
4
Supported
Microsoft Edge
12
Supported
Mobile Browser Engine Support
Chrome Android
18
Firefox Android
4
Safari iOS
3.2
Specifications and References
MDN Browser Compat Data Keys:
css.properties.background-color.currentColor ↗
css.properties.background.currentColor ↗
css.properties.border-bottom-color.currentColor ↗
css.properties.border-bottom.currentColor ↗
css.properties.border-color.currentColor ↗
css.properties.border-left-color.currentColor ↗
css.properties.border-left.currentColor ↗
css.properties.border-right-color.currentColor ↗
css.properties.border-right.currentColor ↗
css.properties.border-top-color.currentColor ↗
css.properties.border-top.currentColor ↗
css.properties.border.currentColor ↗
css.properties.color.currentColor ↗
css.properties.outline-color.currentColor ↗