10 background-color: blue;
14 -webkit-transition: opacity
2000s step-end;
18 if (window
.testRunner
) {
19 testRunner
.waitUntilDone();
20 testRunner
.dumpAsText();
25 var results
= document
.getElementById('results');
26 results
.innerHTML
+= s
+ '<br>';
29 function testTransitions()
31 var box
= document
.getElementById('box');
32 box
.className
= 'animated';
33 box
.style
.opacity
= '0.5';
34 if (getComputedStyle(box
).opacity
== '0.5')
35 log("Transition didn't start: FAIL");
38 if (getComputedStyle(box
).opacity
== '0.5')
39 log('No running transitions: PASS');
41 log('Transition still running: FAIL')
43 if (window
.testRunner
) {
44 testRunner
.notifyDone();
48 window
.addEventListener('load', testTransitions
, false);
55 <div id=
"results"></div>