Skip to content
CSS·Advanced·Conceptual·1 min read

What is scoping proximity?

Short interview answer

For competing declarations inside matching @scope rules after specificity ties, the rule whose scope root is fewer ancestor hops away receives precedence.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Cascade, specificity, and layers

Related questions