blob: 44097d9811a8fd1aa6e15a114c257dd13aa66723 [file] [log] [blame]
<html>
<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.testRunner) {
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
var el = document.getElementById('t');
el.addEventListener('webkitTransitionEnd', function(){
el.style.webkitTransitionDuration = '';
if (window.testRunner)
testRunner.notifyDone();
});
el.style.cssText += ';-webkit-transition:background-color 0.2s;background-color:#fff'
</script>
</body>
</html>