3 ms·
> decades of cruft that have accumulated in CSS Like what? I assume there's some CSS that doesn't have a use anymore but thinking about layout, we don't need
by extra88 5y ago
> decades of cruft that have accumulated in CSS
Like what?
I assume there's some CSS that doesn't have a use anymore but thinking about layout, we don't need floats for page layout but that was basically a hack, float is still useful for its original purpose.
Basically, the CSS spec isn't full of cruft but there are a lot of CSS practices that are no longer needed.
- Brendinooo 5y agoWas just thinking about this the other day. Once aspect-ratio gets Safari support, that will take away the need for the height:0/padding-bottom: 66% thing, which is one of the last hacky bits of CSS that I use regularly. Container queries will fill another huge hole, but I don't polyfill/do hacky things for that in the meantime. CSS really does do pretty much everything you need these days.
- deleted 5y ago[deleted]