Y
Hacker News
new
|
ask
|
show
|
jobs
by
bouncingsoul
4349 days ago
In case you didn't know, there's already a special version of the `inherit` keyword for using the color value in other properties:
background-color: currentColor;
Fully supported in all modern browsers.
http://devdocs.io/css/color_value#currentColor_keyword