Fix for flickering elements in Webkit browsers