CSS: jQuery#hide should always save display value

Fixes #14750
Closes gh-1509