News for hackers. Stuff that matters.
Re:CSS sucks because we don't bother learning it (2022) by the_other on Tuesday January 06, 2026 @01:23PM (#46516324)
I’m dumb and don’t understand the distinction you’re making.

    elem.style.setProperty(‘—var-name’, newValue);

… will set a new value for the “constant”. The element will rerender with the new value. You can animate/automate these changes and the element will continue to rerebder with the updated value.

To me, that justifies the name “variable” from the perspective of the CSS.

There are no comments on this comment yet.