10 background-color: red;
11 -webkit-animation: anim
1s linear infinite;
19 background-color: red;
20 -webkit-animation: animShorthand
1s linear infinite;
28 background-color: red;
29 background-image: -webkit-cross-fade(url(resources/blue-
100.png), url(resources/green-
100.png),
50%);
31 @-webkit-keyframes anim {
32 from { background-image: url(resources/blue-
100.png); }
33 to { background-image: url(resources/green-
100.png); }
35 @-webkit-keyframes animShorthand {
36 from { background: url(resources/blue-
100.png); }
37 to { background: url(resources/green-
100.png); }
40 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
41 <script type=
"text/javascript" charset=
"utf-8">
42 const expectedValues = [
43 // [time, element-id, property, expected-value, tolerance]
44 [
2.5, [
"box",
"boxStatic"],
"backgroundImage",
0.5,
0.05],
45 [
2.5, [
"boxShorthand",
"boxStatic"],
"backgroundImage",
0.5,
0.05],
48 var doPixelTest = true;
49 var disablePauseAPI = false;
50 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, doPixelTest);
55 <div id=
"boxStatic"></div>
56 <div id=
"boxShorthand"></div>
57 <div id=
"result"></div>