Add support for display=none. Closes #1256