4 <style type=
"text/css" media=
"screen">
8 background-color: green !important;
9 -webkit-animation: test
0.5s;
11 @-webkit-keyframes test {
12 from { background-color: red; }
13 to { background-color: red; }
16 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
17 <script type=
"text/javascript" charset=
"utf-8">
18 const expectedValues = [
19 // [time, element-id, property, expected-value, tolerance]
20 [
0,
"test",
"background-color",
"rgb(0, 128, 0)",
0],
21 [
0.25,
"test",
"background-color",
"rgb(0, 128, 0)",
0],
22 [
0.5,
"test",
"background-color",
"rgb(0, 128, 0)",
0],
24 runAnimationTest(expectedValues);
28 <p>Tests that !important properties apply over animations.
</p>