4 ms·
> I'm always surprised when people show what modern CSS and HTML5 is capable of doing. There are web servers written in Brainfuck and Bash. They are capable of
by dmitriid 5y ago
> I'm always surprised when people show what modern CSS and HTML5 is capable of doing.
There are web servers written in Brainfuck and Bash. They are capable of it, you can be surprised by it, but it doesn't mean that this is useable or applicable in real life.
What CSS lacks? Take what Sass offers, go through feature by feature, and you'll find so many things lacking. Some of them are slowly making their way into CSS, with emphasis on slowly: variables are in, nesting has been debated for 6 years now.
What else CSS lacks, and will lack forever due to the core nature of HTML and CSS? Actual useful animations. Where you can animate a height: auto, or a list item being removed from a list.
- gherkinnn 5y agoNesting is a plague and I just don’t see the point. Animating height:auto would be very welcome though.
- dmitriid 5y ago> Nesting is a plague and I just don’t see the point. Without it you end up reimplementing nesting and modularity, poorly, with BEM or OOCSS, or... Nesting also helps with refactoring, where you don't have to rename a class name in a dozen places just because you decided to call it something else. See also motivation in the spec: https://drafts.csswg.org/css-nesting/#motivation https://drafts.csswg.org/css-nesting/#motivation > Animating height:auto Animating anything, really. CSS can semi-reliably animate only something that doesn't cause reflows. And this severely limits animations.