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.- 010How does the cascade decide which declaration wins?Coremedium
- 020How is specificity calculated, including
:is(),:where(), and:not()?Coremedium - 030What are cascade layers, and how do they change what overrides what?Coremedium
- 040What does
!importantreally do, and why does it reverse origin and layer order?hard - 050Which properties inherit, and what do
inherit,initial,unset,revert, andrevert-layerdo?medium - 060What are specified, computed, used, and resolved values?Corehard