A quick introduction to CSS @scope – Bram.us
January 29, 2024
Have you heard about #CSS @scope? It’s an upcoming way to scope the reach of your CSS selectors, allowing you to move away from methodologies such as BEM because you no longer need to name those in-between elements.
Bramus covered CSS Scopes (and other modern CSS architecture features like layers and nesting) at Web Directions Summit in 2022. These are important aspects for architecting modern CSS, and managing some of the complexity the power of inheritance and the cascade bring with them.