Skip to main content
CSS is fun and cool and I like it.

What does “revert” do in CSS?

Miriam Suzanne explains in a Mozilla Developer video on the subject.

The revert value in CSS “resets” a property back to it’s inherited value, only going as far back as the UA stylesheet. That’s critical, as it won’t reset a <p to inline, for example, because a <p is a block-level element as set in the UA stylesheet.… Read article “What does “revert” do in CSS?”