Hacker News new | ask | show | jobs
by kaeshiwaza 511 days ago
Locality of behavior can be done with few lines of js. https://github.com/gnat/css-scope-inline
1 comments

I assume that you don't even need javascript after a few releases of Firefox. All other major players support scoped styles.

https://developer.mozilla.org/en-US/docs/Web/CSS/@scope https://caniuse.com/?search=%40scope