3 ms·
CSS is still a mess of random features that can't be cleanly composed or extended If you separate old CSS from new CSS, it’s not so bad. Yes, CSS has some tec
by alwillis 4y ago
CSS is still a mess of random features that can't be cleanly composed or extended
If you separate old CSS from new CSS, it’s not so bad.
Yes, CSS has some technical debt from the olden times (like any programming language does) but these days, you need less and less of the old stuff.
For example, all of the alignment stuff created originally for Flexbox (justify-content, align-items, justify-self, etc.) were broken out in their own specification [1] and now CSS Grid and any future specification uses the same terminology to describe how to align something in a box.
Instead of every color model having it's own syntax, which is how CSS started, there's now color functions that can specify any color in any color space [2].
[1]: https://drafts.csswg.org/css-align/ https://drafts.csswg.org/css-align/
[2]: https://drafts.csswg.org/css-color-5/#color-function https://drafts.csswg.org/css-color-5/#color-function