4 ms·
Nesting is a plague and I just don’t see the point. Animating height:auto would be very welcome though.
by gherkinnn 5y ago
Nesting 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.