I want an easy way to revert an element to its original display
setting
#106
Replies: 2 comments
-
CSS has the "revert" keyword. |
Beta Was this translation helpful? Give feedback.
-
I can't really think of something that needs to be added here.
|
Beta Was this translation helpful? Give feedback.
-
If you are building toggles (or similar interfaces) you often need to make adjustments to an element’s
display
property. Often this requires tracking the element’s initial CSSdisplay
value before setting it to "none" so you can switch it back later. It would be nice to have a mechanism by which you could reset an element’sdisplay
property (and potentially other properties) without having to know what the original setting was.https://webwewant.fyi/wants/72/
Beta Was this translation helpful? Give feedback.
All reactions