← 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

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

Docs: N/A

Explainers: N/A

View on chromestatus.com