9 -webkit-transition-property: text-shadow;
10 -webkit-transition-duration:
1s;
11 -webkit-transition-timing-function: linear;
15 text-shadow: yellow
0px
10px
10px,
23 text-shadow: green
0px
10px
2px,
33 if (window
.testRunner
) {
34 testRunner
.dumpAsText();
35 testRunner
.waitUntilDone();
40 document
.getElementById('container').className
= 'final';
41 window
.setTimeout(checkShadow
, 0);
44 function checkShadow()
46 var container
= document
.getElementById('container');
47 var shadow
= window
.getComputedStyle(container
).textShadow
;
48 shadow
= shadow
.replace(/rgb([^)]*)/g, "color").split(",");
50 var result
= document
.getElementById('result');
51 if (shadow
.length
== 5)
52 result
.innerHTML
= 'PASS: saw 5 shadows during the transition';
54 result
.innerHTML
= 'FAIL: saw ' + shadow
.length
+ ' shadows during the transition';
56 if (window
.testRunner
)
57 testRunner
.notifyDone();
60 window
.addEventListener('load', setupTest
, false);
67 <div id=
"result"></div>