revert-layer

noun

say it: “rih-VERT LAY-er” /rɪˈvɜːrt ˈleɪər/

A CSS keyword that rolls a property back to the value the earlier cascade layers give it, as if the current layer's rule weren't there.

What does the revert-layer keyword do?

revert-layer rolls a property back to the value from the previous cascade layer.

@layer theme { .button { background: revert-layer; } }

In a sentence

  • “Inside the components layer, color: revert-layer gave the link back the color the base layer set for it.”

Level: Freelancer · More CSS terms at this level

Updated