Widely available Supported across all major browsers. Safe to use in production.

Browser support

Feature Desktop Mobile
Chrome
Edge
Firefox
Safari
Chrome Android
Safari iOS
84
84
67
9.1
84
9.3
1+Supported (version) Not supported Has note Sub-feature descriptions sourced from MDN Web Docs (CC BY-SA 2.5)

Syntax

CSS
.reset-list {
  list-style: revert;
  padding: revert;
  margin: revert;
}

Live demo

list-style: revert

CSS List-style: revert demo.

PreviewFullscreen

padding: revert

CSS Padding: revert demo.

PreviewFullscreen

margin: revert

CSS Margin: revert demo.

PreviewFullscreen

Use cases

  • Using revert

    The revert CSS keyword reverts the cascaded value of the property from its current value to the value the property would have had if no changes had been made by the current style origin to the current element.

Cautions

  • May not be supported in older browsers.

Accessibility

  • Make sure visual changes are conveyed appropriately to assistive technology.