Limitations of Scoped CSS
I was really excited about Scoped CSS a couple of years back when frameworks like React and Vue introduced them.
As I began trying Scoped CSS out for myself, I was disappointed and I felt it didn’t live up to its hype.
But after more tries, I’m happy to announce that Scoped CSS is indeed useful. You only have to realize what its limitations are and what to do when you face these limitations.
Speaking of that, the limitations of Scoped CSS are:
- You cannot style children components
- You cannot style slot content
You can find out more about what I mean by each limitation and what to do when you encounter them in today’s article.
Enjoy!
Stay awesome,
Zell