2 ms·
I wish they made this an attribute on the <style> element. <style scoped> :root { /* the section style */ } span { color: blue; } </sty
by akira2501 2y ago
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.
- nness 2y agoI 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.
- wolframkriesing 2y agoI 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.