Skip to main content

Harshal V. LADHE

CSS @scope

Using the @scope at-rule to limit where selectors match, with scoping roots, donut-scope limits and scope proximity in the cascade.

Content tagged css-scope

  • Tutorial:CSS @scope: Component-Level Style Isolation

    Limit where selectors match, with donut scopes and proximity.
    Use CSS @scope to keep component styles inside a root, stop them at a donut-scope limit, and let scope proximity fix nested themes.
    Published at:
    Categories:CSS
    Estimated reading time:8 min read