revert
Widely available since 2023-01-27
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
.
Learning resources on MDN
Browser support (view on caniuse.com)
- Chrome 84 Released on 2020-07-27
- Chrome Android 84 Released on 2020-07-27
- Edge 84 Released on 2020-07-16
- Firefox 67 Released on 2019-05-21
- Firefox for Android 67 Released on 2019-05-21
- Safari 9.1 Released on 2016-03-21
- Safari on iOS 9.3 Released on 2016-03-21