fix flickering when resizing down in webkit browser, and CSS update