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

yes you can, it's known as css custom properties
I think they're trying to say that you can't

  :root {
    --prop: color;
    --value: red;
    var(--prop): var(--value)
  }