Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


I 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?


On 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/




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: