concept

cascaded-value — CSS reference

The cascaded value is the winner of cascade sorting for a property on an element, if an eligible declaration exists. The winning declaration can still contain a CSS-wide keyword or a substitution that needs later processing. Defaulting and inheritance are separate steps.

Formal Syntax & Structure

css syntaxcss
#a { color: teal; } div { color: navy; }

Working Example

Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a {color:#006050} div {color:#184168}</style><body><div id="parent"><div id="a">Sample</div><div id="b">Comparison</div></div></body></html>
CSS Reference