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

Locality of behavior can be done with few lines of js. https://github.com/gnat/css-scope-inline


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




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

Search: