To work-around a bug in webkit (https://bugs.webkit.org/show_bug.cgi?id=...

...68072), set the null dimensions and visibility hidden, instead of using display:none