CodeZettaInterview Hub

CSS · Cascade · Senior · Concept

What is @scope and why does it help?

Short Interview Answer

Scopes selectors to a subtree/root to reduce leakage without heavy specificity.

Detailed Explanation

Helps component-local CSS in light DOM. Browser support considerations apply.

Did you know this answer?