Web features explorer

revert-rule

Newly Available (since 2026-09-14)
Expected to be Widely Available on 2029-03-14

The revert-rule CSS keyword resets a property to its previous value in the cascade, as if the current style rule had not been present. It's especially useful with conditionals, to cancel a declaration when the condition is not met.

Browser support

  • Chrome 148 Released on 2026-05-05
  • Chrome Android 148 Released on 2026-05-05
  • Edge 148 Released on 2026-05-07
  • Firefox 150 Released on 2026-04-21
  • Firefox for Android 150 Released on 2026-04-21
  • Safari 27 Released on 2026-09-14
  • Safari on iOS 27 Released on 2026-09-14