concept
Source order — CSS reference
Source order breaks a tie after higher cascade criteria, including origin, importance, layer, specificity and applicable scope proximity. Later matching declarations win only when those criteria tie. Here the selectors and cascade positions are otherwise equal.
Formal Syntax & Structure
css syntaxcss
.notice { color: red; } .notice { color: blue; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>source-order</title><style>body{margin:8px;font:16px/24px sans-serif;color:black;background:white}#a{box-sizing:border-box}.notice{color:red}.notice{color:blue}</style><body><p id="a" class="notice">Notice</p></body></html>