CSS: jQuery#hide should always save display value

Fixes #14750
Closes gh-1509
(cherry picked from commit 5a8f76933288396b915800a18240aa17d3414201)

Conflicts:
	src/css.js