The article reflects on the author's 15 years of experience with CSS, particularly focusing on the benefits and drawbacks of new CSS features. While excited about helpful features like text-box-trim, the author expresses significant concern over native CSS nesting, which complicates code comprehension and maintenance. The author, a former Sass advocate, highlights how nesting can lead to confusing code structures, especially for junior developers, and emphasizes the importance of maintainable code that can be easily understood by all team members.
A good example of that is text-box-trim. There are features that fill me with dread though and right at the top of that list is native CSS nesting.
Without that $self variable, we end up with this rather awkward CSS: The nesting selector reference isn't predictable to most people.
Collection
[
|
...
]