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

I wish they made this an attribute on the <style> element.

    <style scoped>
        :root { /* the section style */ }
        span { color: blue; }
    </style>
The whole :scope inside @scope is odd to me.


I agree, when I saw the <style scoped> I also thought this would have been the coolest. But I guess there have been considerations and discussions about it. I just don't know where.


I guess @scope > :scope would help you know what the CSS is doing even if you don't know where the CSS is being inserted... but I can't imagine that being a problem in practice.




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

Search: