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>Keyframes test
</title>
8 <style type=
"text/css" media=
"screen">
15 background-color: blue;
16 -webkit-animation-duration:
2s;
17 -webkit-animation-timing-function: linear;
18 -webkit-animation-name: anim;
19 -webkit-animation-iteration-count:
0.3;
21 @-webkit-keyframes anim {
30 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
31 <script type=
"text/javascript" charset=
"utf-8">
33 if (window.testRunner) {
34 testRunner.dumpAsText();
35 testRunner.waitUntilDone();
38 document.addEventListener(
"webkitAnimationEnd", function(event){
40 if (event.elapsedTime
> 0 && event.elapsedTime <
1)
41 result =
"PASS end of animation";
43 result =
"FAIL end of animation";
44 document.getElementById('result').innerHTML = result;
46 if (window.testRunner)
47 testRunner.notifyDone();
53 This test performs an animation of the left property with a non integer iteration count.