3 ms·
Since CSS tries to stay purely declarative, it would be cool if for the functions they introduced a purely functional language. But it is going to end up being
by nine_k 3y ago
Since CSS tries to stay purely declarative, it would be cool if for the functions they introduced a purely functional language.
But it is going to end up being JS, of course.
- tkcranny 3y agoThey have examples there; it’s just pure CSS, and “declarative” still. Granted the `@function` and `var(--variable)` syntax is as clunky as ever, but it’s still distinctly not JS in any way.
- nine_k 3y agoI see, so far it's simple pure functions. But I think the vector is towards everything becoming JS anyway. I'd love to be proven wrong.