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

What order does the cascade use to choose a declaration?

Short interview answer

At a high level it filters relevant declarations, compares origin and importance, cascade layer order, specificity, scoping proximity when applicable, and source order. Specificity is only one stage and does not override a declaration that already wins at an earlier stage.

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