Y
Hacker News
new
|
ask
|
show
|
jobs
by
ihuman
4349 days ago
Does anyone know if the var() function only work with the variables? For example, can I do something like:
background-color: var(color);?
2 comments
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
link
ahoge
4349 days ago
Doesn't work.
http://jsfiddle.net/QEJw9/
link