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

Does :where() ever add specificity?

Short interview answer

No. The pseudo-class and every selector inside it contribute zero specificity, regardless of how complex or specific those argument selectors appear.

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