CSS cascade / origin / layer / specificity

Separate CSS origin, layer, specificity and order

Do not decide a winner from specificity alone. Review origin, layer, source order and important separately with synthetic rules and no external stylesheet fetch.

Five review axes

Separate origin and importance, layer, specificity and source order to avoid adding unnecessary important declarations.

origin → layer → specificity → source order 
!important is a separate boundary from ordinary rules
AxisReview
originDo not mix author, user and UA origin.
layerSeparate layer order from unlayered rules.
specificityUse it as a comparison within the same conditions.
source orderCheck later order when other conditions match.
importantReview origin and layer before adding it.

Safe correction order

  1. Record origin and importance of the winning rule.
  2. Review layer and unlayered relationships.
  3. Compare specificity only as needed.
  4. Review source order last and approve the correction note.

This page does not load an external stylesheet. Apply real CSS changes only through the existing review process.

Six synthetic cases

caseresult
origin-authorAuthor origin
layer-orderLayer order
specificitySpecificity
source-orderSource order
important-overrideImportant boundary
unsupported-external-cssReject