4 <style type=
"text/css" media=
"screen">
6 -webkit-animation-name: animation1, animation2;
7 -webkit-animation-duration:
2s;
8 -webkit-animation-timing-function: steps(
2);
14 @-webkit-keyframes animation1 {
17 -webkit-animation-timing-function: linear;
23 @-webkit-keyframes animation2 {
26 -webkit-animation-timing-function: linear;
33 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
34 <script type=
"text/javascript" charset=
"utf-8">
36 const expectedValues = [
37 // [time, element-id, property, expected-value, tolerance]
38 [
0.5,
"target",
"left",
50,
5],
39 [
0.5,
"target",
"top",
50,
5],
40 [
1.5,
"target",
"left",
150,
5],
41 [
1.5,
"target",
"top",
150,
5],
44 runAnimationTest(expectedValues);
48 <p>Tests that per-keyframe timing functions are applied correctly when an element is targeted by multiple animations. The red block should move smoothly from top-left to bottom-right. See
<a href=
"http://crbug.com/288540">crbug.com/
288540</a>.
</p>
49 <div id=
"target"></div>
50 <div id=
"result"></div>