Y
Hacker News
new
|
ask
|
show
|
jobs
by
nawgz
1546 days ago
I still don't think you can make a block or an assignment using CSS vars, i.e. the left hand side of a `property: value;` statement. Maybe I'm wrong, that would be interesting
1 comments
royal_ts
1546 days ago
yes you can, it's known as css custom properties
link
easrng
1546 days ago
I think they're trying to say that you can't
:root { --prop: color; --value: red; var(--prop): var(--value) }
link