Possible fix for the HTML5 z-order bug