3 ms·
Some nice surprises in here (love the idea of @scope and @nest). It's a total mind blow how far along CSS has come from the stone age IE6 days.
by rglover 4y ago
Some nice surprises in here (love the idea of @scope and @nest). It's a total mind blow how far along CSS has come from the stone age IE6 days.
- Macha 4y agoI don't quite get what the big deal is with @scope: What's the benefit to: @scope(.card) { header { } } over .card header { } (or ".card > header", the article isn't quite clear which it is). Is it just the sass-style nesting? How does it differ from @nest then?
- rglover 4y agoOn the surface, it's very similar to the snippet you pasted and nesting but with a few exceptions. I asked the same and this breaks it down well: https://css-tricks.com/early-days-for-css-scoping/ https://css-tricks.com/early-days-for-css-scoping/