4 ms·
If CSS is no different from a programming language, then why tf aren't we using JS for styling already? Instead we're adding to CSS in the course of 25 years wi
by tannhaeuser 3y ago
If CSS is no different from a programming language, then why tf aren't we using JS for styling already? Instead we're adding to CSS in the course of 25 years without any mental discipline. And also add to JS.
CSS was once supposed to be a style language for laymen (including readers!). Citing from the CSS level 1 specification:
> This document specifies level 1 of the Cascading Style Sheet mechanism (CSS1). CSS1 is a simple style sheet mechanism that allows authors and readers to attach style (e.g. fonts, colors and spacing) to HTML documents.
At the end of the day (or mid-century), newer generations have to maintain the CSS circus, and I don't see that happening. Especially with "web developers" having captured the web for themselves, as you're saying.
- paradox460 3y ago> why tf aren't we using JS for styling already People are and have been for quite a while https://cssinjs.org/ https://cssinjs.org/
- john_the_writer 3y agoBecause JS is worse, and doesn't work everywhere css does. I personally like keeping style and business logic bespoke.
- culi 3y ago> If CSS is no different from a programming language, then why tf aren't we using JS for styling already? Instead we're adding to CSS in the course of 25 years without any mental discipline. And also add to JS. People are and you're completely misinterpretting what I'm saying. Obviously there are omnibus ways CSS is not at all similar to a programming language