At the December 2015 SydCSS meetup I gave a talk on local scope in CSS, which I have written about previously.
In the talk I discuss a few techniques we can use today to achieve encapsulation in CSS, including build tools like CSS Modules with Webpack, and examine the future specifications of the language (CSS4) which aim at introducing local scope.
- Slides: http://matt-d-rat.github.io/deck-css-360-no-scope
- Webpack & CSS Modules demo: https://github.com/matt-d-rat/css-360-no-scope-webpack-demo