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 with comma separated keys
</title>
8 <style type=
"text/css" media=
"screen">
15 background-color: blue;
16 -webkit-animation-duration:
1s;
17 -webkit-animation-timing-function: linear;
18 -webkit-animation-name: anim;
20 @-webkit-keyframes anim {
22 20%,
40% { left:
100px; }
23 60%,
80%{ left:
200px; }
27 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
28 <script type=
"text/javascript" charset=
"utf-8">
30 const expectedValues = [
31 // [time, element-id, property, expected-value, tolerance]
32 [
0.3,
"box",
"left",
100,
1],
33 [
0.7,
"box",
"left",
200,
1],
36 runAnimationTest(expectedValues);
41 This test performs an animation of the left property. It should stop for
100ms at
100px and
200px
42 We test for those values
50ms after it has stopped at each position. Keys in two of the keyframes
43 are comma separated, so these should be correctly broken out into separate keyframes.