blob: c430662ea32742e46df527b697b7316262a65752 [file] [log] [blame]
<html>
<head>
<title>Crash when clearing webkitTransitionDuration in webkitTransitionEnd event handler</title>
</head>
<body>
This tests that we don't crash if we clear a transitions duration during the transition end callback.
<div id="t" style="background-color:#000">test</div>
<script>
if (window.layoutTestController) {
layoutTestController.dumpAsText();
layoutTestController.waitUntilDone();
}
var el = document.getElementById('t');
el.addEventListener('webkitTransitionEnd', function(){
el.style.webkitTransitionDuration = '';
if (window.layoutTestController)
layoutTestController.notifyDone();
});
el.style.cssText += ';-webkit-transition:background-color 0.2s;background-color:#fff'
</script>
</body>
</html>