Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
nawgz
· 4y ago · 0 comments
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
Comments
[–]
royal_ts
4y ago
yes you can, it's known as css custom properties
[–]
easrng
4y ago
I think they're trying to say that you can't
:root { --prop: color; --value: red; var(--prop): var(--value) }