News for hackers. Stuff that matters.
Re:Master Styles – The First Virtual CSS Engine by nawgz on Thursday March 24, 2022 @06:39PM (#30796325)
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
Re:Master Styles – The First Virtual CSS Engine by royal_ts on Thursday March 24, 2022 @06:42PM (#30796351)
yes you can, it's known as css custom properties
Re:Master Styles – The First Virtual CSS Engine by easrng on Thursday March 24, 2022 @10:47PM (#30798154)
I think they're trying to say that you can't

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