← Back to release summary

revert keyword

Category
CSS
Type
New or changed feature
Status
Enabled by default (Chrome 84)
Intent stage
Evaluate readiness to ship

WPT details: https://wpt.fyi/results/css/css-cascade?label=master&label=experimental&aligned&q=revert

Summary

The 'revert' keyword allows authors to roll back the cascade to the previous cascade level for a given CSS property. For example, on a <div> element, specifying 'display:revert' will cause the computed value of 'display' to be 'block' (assuming no user styles).

Motivation

Standards & signals

Ecosystem

View on chromestatus.com