News for hackers. Stuff that matters.
Re:How We Could Write Better CSS by analyst74 on Tuesday September 24, 2013 @03:57PM (#6440315)
My examples must be misleading, I'm not against creating classes.

All I'm trying to say, is that in some cases (i.e. when you only need a particular set of styles for a single page/section), limiting the scope of those style definition can help dealing with specificity hell / bleeding styles, and make the application more maintainable.

Obviously, this is a trade-off, a big one if you want your site to be consistent across pages. But there will be occasions where one or more page of a site/app is vastly different from other pages.

Re:How We Could Write Better CSS by Jormundir on Tuesday September 24, 2013 @06:50PM (#6441356)
Selecting element types rather than creating new classes is what causes bleeding styles.
Re:How We Could Write Better CSS by protonfish on Wednesday September 25, 2013 @04:01PM (#6446928)
Until you get class-name collisions or your classes are applied to elements by other developers without you knowing. So you create more unique classes and every element ends up having 12 classes applied to it. Classes are no solution to bleeding styles.