Tests element removal and hiding within the webkitAnimationEnd event handler. Should not crash.