1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
6 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
7 <title>Dynamic transition removal
</title>
8 <style type=
"text/css" media=
"screen">
13 background-color: blue;
17 -webkit-transition: opacity
200ms;
20 <script type=
"text/javascript" charset=
"utf-8">
21 if (window.layoutTestController) {
22 layoutTestController.waitUntilDone();
23 layoutTestController.dumpAsText();
28 var results = document.getElementById('results');
29 results.innerHTML += s + '
<br>';
32 function testTransitions()
34 if (window.layoutTestController) {
35 var numAnims = layoutTestController.numberOfActiveAnimations();
37 log('No running transitions: PASS');
39 log('Still ' + numAnims + ' transitions running: FAIL')
41 layoutTestController.notifyDone();
45 function removeStyle()
48 window.setTimeout(testTransitions,
50);
51 function startTransition()
53 var box = document.getElementById('box');
54 box.className = 'animated';
55 window.setTimeout(function() {
56 box.style.opacity = '
0.5';
57 window.setTimeout(removeStyle,
200);
61 window.addEventListener('load', startTransition, false);
68 <div id=
"results"></div>