blob: 262dfd7a20aef726e376e0b697546f26b558001a [file] [log] [blame]
oliver@apple.come3860422008-12-08 10:35:33 +00001<html>
oliver@apple.come3860422008-12-08 10:35:33 +00002 <body>
3 This tests that we don't crash if we clear a transitions duration during the transition end callback.
4 <div id="t" style="background-color:#000">test</div>
5 <script>
rniwa@webkit.orgcc082ecd2012-06-16 03:42:58 +00006 if (window.testRunner) {
7 testRunner.dumpAsText();
8 testRunner.waitUntilDone();
oliver@apple.come3860422008-12-08 10:35:33 +00009 }
10 var el = document.getElementById('t');
11 el.addEventListener('webkitTransitionEnd', function(){
12 el.style.webkitTransitionDuration = '';
rniwa@webkit.orgcc082ecd2012-06-16 03:42:58 +000013 if (window.testRunner)
14 testRunner.notifyDone();
oliver@apple.come3860422008-12-08 10:35:33 +000015 });
antti@apple.com4942ea52013-12-20 14:44:23 +000016 setTimeout(function() { el.style.cssText += ';-webkit-transition:background-color 0.2s;background-color:#fff' }, 0);
oliver@apple.come3860422008-12-08 10:35:33 +000017 </script>
18 </body>
19</html>