DEV Community

Discussion on: What do you hate the most in CSS and why?

Collapse
 
ahferroin7 profile image
Austin S. Hemmelgarn

The difficulty of reusing styling. In essence, I'm very much of the opinion that CSS should natively have functionality equivalent to the @extend and @mixin/@include functionality in SASS.

I quite regularly have situations where elements with class A will always have class B as well, but the reverse is not also true, and class B is in a third-party library so I can't directly reuse it's styling without duplicating it. This is actually one of the biggest things that's pushed me towards using SASS in the first place instead of plain CSS (that, and it lets me ship a single style-sheet with everything, thus reducing the number of render-blocking resources).