The Cascade: How the Browser Picks a Winner

When two CSS rules set the same property on the same element, the browser runs the same tie-breaker contest every time, and knowing its rounds tells you why a style won or lost.

Updated

Cheat sheet: The Cascade: How the Browser Picks a Winner
Category
CSS
Level
Apprentice
Tags
!important, Browser default styles, Cascade, Cascade origin, CSS, Source order