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:
1s;
17 -webkit-animation-timing-function: linear;
18 -webkit-animation-name: anim;
19 -webkit-animation-fill-mode: forwards;
21 @-webkit-keyframes anim {
25 @-webkit-keyframes irrelevant {
29 @-webkit-keyframes anim {
34 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
35 <script type=
"text/javascript" charset=
"utf-8">
37 const expectedValues = [
38 // [time, element-id, property, expected-value, tolerance]
39 [
1,
"box",
"left",
300,
1],
42 runAnimationTest(expectedValues);
47 This test verifies that the last @keyframes rule with a given name is the one used.