5 -webkit-transition: background-color
.15s linear;
8 background-color: hsla(
0,
50%,
50%,
1);
12 function checkRunning()
14 var current
= document
.timeline
.getAnimations().length
;
16 document
.getElementById('result').innerHTML
= "PASS: Number of active transitions is (0) as expected";
18 document
.getElementById('result').innerHTML
= "FAIL: Number of active transitions is (" + current
+ ") but was expecting (0)";
19 testRunner
.notifyDone();
22 if (window
.testRunner
) {
23 testRunner
.dumpAsText();
24 testRunner
.waitUntilDone();
30 <div id=
"foo">This should not be continually firing transitions
</span>
32 <script type=
"text/javascript" charset=
"utf-8">
33 // Force a layout so that changing the classname below causes an animation.
34 document.body.offsetHeight;
36 document.getElementById('foo').addEventListener('webkitTransitionEnd', function() {
37 setTimeout(checkRunning,
0);
40 document.getElementById(
"foo").
className=
"trans";