keyword
revert-rule — CSS reference
The current editor draft describes rule-level rollback: the property is cascaded as if the containing style rule had not contributed declarations for it. Other properties in that rule are not reset. Unlike revert-layer, earlier competing rules in the same layer can still win. In the animation origin, the keyword behaves like revert-layer. Use feature detection and a deliberate fallback; do not assume support from documentation alone.
Formal Syntax & Structure
css syntaxcss
color: revert-rule;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>#a {color:#184168} #a.special {color:#006050;color:revert-rule;border:2px solid currentColor}</style><body><p id="a" class="special">Rule rollback</p></body></html>