CSS @scope Rule: Scoped Styles Without Frameworks
CSS @scope: styles that stay inside a component A rule like .card a { color: inherit; } also hits links in a newsletter form that someone places inside the card, and .prose p styles paragraphs in a nested block that should look different. BEM class names and growing specificity were the workarounds. @scope limits rules…
Details