Skip to content

Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 03

The cascade

How CSS decides which declaration applies: the cascade's sort order, specificity, layers, !important, inheritance, and the stages a value passes through.
  1. 010How does the cascade decide which declaration wins?Coremedium
  2. 020How is specificity calculated, including :is(), :where(), and :not()?Coremedium
  3. 030What are cascade layers, and how do they change what overrides what?Coremedium
  4. 040What does !important really do, and why does it reverse origin and layer order?hard
  5. 050Which properties inherit, and what do inherit, initial, unset, revert, and revert-layer do?medium
  6. 060What are specified, computed, used, and resolved values?Corehard