keyword
revert-layer — CSS reference
Excludes declarations at the current layer priority for the property, allowing a lower-priority layer to supply the result. If there is no suitable lower-priority layer, rollback can reach an earlier origin. It is not simply the previous declaration in source order. Important layer ordering is reversed.
Formal Syntax & Structure
css syntaxcss
color: revert-layer;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>CSS reference lab</title><style>@layer base,app; @layer base {p {color:#006050}} @layer app {p {color:#802020} #a {color:revert-layer}}</style><body><p id="a" class="note">Field note</p><p id="b">Control</p></body></html>