Go to values & units→

Cascade Order

Characteristics of the Cascade order


  1. Importance and origin

  2. This is the most critical and first step, which sorts declarations based on their source (like a browser's default settings or a website's custom style) and whether the !important rule is used


    The precedence order, from highest to lowest

    • Transitions: These have the highest priority and override everything else
    • !important declarations: This rule inverts the normal order of precedence
    • Animations: Running CSS animations override normal (non-!important) declarations from any origin
    • Normal styles: For regular declarations
  3. Cascade layers

Introduced in recent CSS specifications, cascade layers (@layer) allow developers to create explicit layers of precedence.


Cascade Layer has main 2 layers:


Learn More →