revert
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
.
To learn more, see
revert at MDN.
Compatibility (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