3 ms·
CSS is a dystopian nightmare from a Lovecraftian dimension of metaphysical horror. I had to do a teeny-tiny bit of CSS work before Christmas and I literally ha
by TheOtherHobbes 7y ago
CSS is a dystopian nightmare from a Lovecraftian dimension of metaphysical horror.
I had to do a teeny-tiny bit of CSS work before Christmas and I literally had to look up the edge cases and exceptions for all of the five common CSS statements I ended up using, because they were all context-dependent in insane ways - endless "This only works if XXXX is also applied here, but does nothing/fails silently if it isn't, even though you might expect it to work, and this mode is only documented on StackExchange etc because the official CSS docs are incomprehensible and no one ever reads them anyway. And by the way, you'll also need a file of resets for many of the most common options."
https://www.w3.org/Style/CSS/current-work https://www.w3.org/Style/CSS/current-work
- jkoudys 7y agoWell... yeah. I'm much happier using some css-in-ts solution, because then I can use stricter types against what I define. No need to track down why my `background-colour` isn't doing anything somewhere, or setting up some separate tool to validate it. While we're looking at cultural problems, this view of style-work as somehow being easier/lighter/less-important/etc. vs the "real" code is at the root of so many of these problems. It's very fashionable to praise functional programming and all the virtues of being declarative, yet we can't connect that with good practices for style.