blob: 262dfd7a20aef726e376e0b697546f26b558001a [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();
});
setTimeout(function() { el.style.cssText += ';-webkit-transition:background-color 0.2s;background-color:#fff' }, 0);
</script>
</body>
</html>