3 ms·
adoptedStyleSheets on document and web-components fixes the problem with CSS.
by oneshtein 2y ago
adoptedStyleSheets on document and web-components fixes the problem with CSS.
- egeozcan 2y agoYes, and lit also uses the adoptedStyleSheets to style the components, but it's just one thing to tackle. There's no "just do this and everything will work" template for web components. Lit is close however, and I think web components should be the future for web development, frameworks turning into libraries (like lit) or compilers that output web components (like... stencil? Never used it personally though).