The CSS4 "revert" value
Add support for the "revert" value from CSS Cascading and Inheritance Level 4.
I bet that many folks who asked for the "unset" value thought it would do what "revert" actually does.
This was implemented in Firefox 67: https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Releases/67#CSS
We're currently limited to `unset` and `initial` for removing styles - which behave in some pretty surprising ways: like setting `display` to `inline` rather than an element's expected default. The `revert` spec is much better suited in almost every use-case, and is the value that we should be encouraging authors to use. In the meantime, authors are using `unset/initial` which override valuable user/user-agent settings.
HM the Gold Link commented
Guido Bouman commented
This is indeed what most people will want to isolate styles from piercing inside a div.
Chris Rebert commented
Bob Myers commented
Yes, we want `revert`, not `unset`. This is necessary for a nextgen CSS framework I am working on.