Get the latest tech news
Inline Scope for CSS
I am not tightly following what's going on in CSS land, since blogs are not the thing and mailing lists became spam lists I don't know where to "listen". But from time to time I read MDN and look for the things that I expect CSS and HTML to provide. And funny enough, often my expectations and reality are aligned. Maybe because the missing things are just so obvious :).
This way the CSS is directly attached to the HTML and only applies to the children of this section. inside a SPAN = blueinside a DIV = inherited color = red You can see that@scope simply limits the styling to the children of the DOM node it is in.
Or read this on Hacker News