DEV Community

Discussion on: Understanding of CSS BEM

Collapse
 
darkwiiplayer profile image
𒎏Wii 🏳️‍⚧️ • Edited

I still think the problem these naming conventions are trying to solve result directly from people deeply misunderstanding the design and purpose of CSS.

Luckily, the direction CSS is evolving in seems to still follow the path of its intended design, with @scope addressing many of the problems people attempt to fix with conventions like BEM.

Soon, selectors like .nav__link {/* Rules */} could turn into @scope (#main-nav) { a:link {/* Rules */} }