coderef

revertBaseline · Widely available

The revert CSS keyword resets any property to its previous default, provided by either the user or browser stylesheets. For example, setting display: revert on a <div> will likely result in display: block, the browser default style. This is often confused with initial.

Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jul 27, 2020. Widely available since Jan 27, 2023.

Browser support

DesktopChrome
1–83Not supported
84+Supportedsince Jul 27, 2020
Current: 155
Edge
12–83Not supported
84+Supportedsince Jul 16, 2020
Current: 154
Firefox
1–66Not supported
67+Supportedsince May 21, 2019
Current: 157
Safari
1–9Not supported
9.1+Supportedsince Mar 21, 2016
Current: 27
MobileChrome Android
18–83Not supported
84+Supportedsince Jul 27, 2020
Current: 155
Firefox Android
4–66Not supported
67+Supportedsince May 21, 2019
Current: 157
Safari iOS
1–9Not supported
9.3+Supportedsince Mar 21, 2016
Current: 27

How to use

This feature is Baseline widely available — use it freely, no fallback needed.

Example

Full syntax and examples are on MDN: revert.

Feature detection

There’s no simple runtime check for this feature; rely on the support table and test in your target browsers.