CSS Cascade defines which value should be assigned to each property of each element.
CSS Cascade defines which value should be assigned to each property of each element.
The final value is given by a multi-step calculation:
- All the declared values applied to an element are collected, for each property on each element.
- Cascading yields the cascaded value.
- Defaulting yields the specified value.
- Resolving value dependencies yields the computed value.
- Formatting the document yields the used value.
- The used value is transformed to the actual value based on constraints of the display environment.
[Source: CSS Cascade - Value Processing]
W3C specifications