Keith's avatar
Keith J. Grant

I think we're going to regret CSS nesting, at least the way it’s defined in the spec.

CSS has been going in a very strong direction for the past five years. There just aren’t any more “gotchas” or confusing/misleading parts of modern CSS, because the W3C has worked their asses off essentially refactoring them all away... except nesting.

I think the sheer number of articles and posts coming out about “the gotchas of CSS nesting” should be a significant indicator to us that they got this one wrong. And I think we’re going to regret it in five years.

Right now, when Sass is still very familiar to us, we collectively seem to be okay with the problems of nesting, simply because it feels familiar. But I think, years from now, when we’ve long since stopped using Sass, nesting is going to end up that list of “Mistakes in the CSS spec.”

The W3C has done some phenominal work lately, but I’m disappointed they listened to those developer polls on this one. They should have gone with one of the less familiar but more predictable and consistent alternative syntaxes.

Link copied!

Liked by

    Shared by