3 ms·
> I think you've actually agreed that Scoped CSS is really useful, but you just implement it manually by using a naming convention. What if you didn't have to w
by seanwilson 9y ago
> I think you've actually agreed that Scoped CSS is really useful, but you just implement it manually by using a naming convention. What if you didn't have to worry about that and the language just worked like that normally?
I agree scoping is universally useful in coding, I just can't empathise that the lack of proper namespacing in CSS is a huge headache when it takes little effort to emulate it by nesting classes. Unless there's more to it? Language support is nice though.
- madeofpalk 9y agoI wouldn't really say there's huge effort. CSS Modules provides scoping in the same way that C++ added scoping to C (AFAIK) - it just mangles the names transparently at 'build' time.