4 <title>Keyframes test
</title>
5 <style type=
"text/css" media=
"screen">
12 background-color: blue;
13 animation-duration:
1s;
14 animation-timing-function: linear;
16 animation-fill-mode: forwards;
19 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
20 <script type=
"text/javascript" charset=
"utf-8">
22 const expectedValues = [
23 // [time, element-id, property, expected-value, tolerance]
24 [
1,
"box",
"left",
300,
1],
26 var lastSheet = document.styleSheets[document.styleSheets.length -
1];
27 lastSheet.insertRule(
"@-webkit-keyframes anim { from { left: 200px; } to { left: 300px;} }", lastSheet.cssRules.length);
28 runAnimationTest(expectedValues);
29 result += lastSheet.cssRules[lastSheet.cssRules.length -
1].cssText;
35 This test creates dynamically a prefixed @-webkit-keyframes and verify the output.