How to REVERT CSS — get back to default browser style @MozillaDeveloper
How to REVERT CSS — get back to default browser style  @MozillaDeveloper
Uploaded October 2019 | Updated November 2026, 16 hours ago
We often want to set a CSS property "back to the default" — as if our stylesheets had never applied a style. `Initial` and `unset` seem like they could help us do this.... but they don't quite do what we want. The new `revert` value gives us a way to say "hey, go back to the browser's default styles for this property." Miriam Suzanne explains this new value and how it's different from what we had before.

• MDN Docs: developer.mozilla.org/en-US/docs/Web/CSS/revert
• Demo: codepen.io/mirisuzanne/pen/WVjNZP
How to REVERT CSS — get back to default browser styleAsk a Fox event - AMA with the WebCompat teamMonthly Community Call - January 2026The Mozilla Community: how it started, how it evolved, and where it is going.Add-ons for Firefox Android - Everything You Need to Know!Firefox Profiler beyond the webThis AI Speaks Swahili — SartifySolving the world’s (localization) problemsMozilla Community Call - Learn more about Firefox Translations!Monthly Community Call - June 2026Community-led Data Creation Initiatives: Learnings from KiswahiliSUMO Community call - December 2025
Mozilla Developer |

How to REVERT CSS — get back to default browser style

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER