News for hackers. Stuff that matters.
Re:Custom Properties as State by bawolff on Saturday January 09, 2021 @05:46PM (#25705812)
I'd argue that css already has (very limited) control flow [calc() statements, and the cascading nature of selectors]. In combination with user interaction and html, it also has state.

For example see the css implementation of celluar autonoma http://eli.fox-epste.in/rule110/

Re:Custom Properties as State by brundolf on Sunday January 10, 2021 @11:50AM (#25716543)
CSS has expressions, but not imperative logic or mutability (it's possible I misused the term "control flow")

You're right that HTML (technically, the DOM) has a little bit of intrinsic state, despite our mental model of it being static. However that state is constrained to user interaction and is always very localized, so it avoids most of the maintainability problems that we think of as coming from having mutable state