concept
Style invalidation — CSS reference
A DOM or style mutation may make previously calculated styles stale. Engines track dependencies to decide which styles must be reconsidered. A change to an ancestor class can affect descendants; the result does not reveal how many nodes the engine invalidated.
Formal Syntax & Structure
css syntaxcss
.active .label { color: blue; }Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>style-invalidation</title><style>body{margin:8px;font:16px/24px sans-serif;color:black;background:white}#a{box-sizing:border-box}.label{color:red}.active .label{color:blue}</style><body><div><span id="a" class="label">Status</span></div></body></html>