4 <title>cubic-bezier value overflow: Lengths
</title>
12 background-color: blue;
13 -webkit-transition: left
1s linear;
19 <script src=
"../animations/resources/animation-test-helpers.js"></script>
21 const expectedValues
= [
22 // [time, element-id, property, expected-value, tolerance]
23 [0.50, "box1", "left", 488, 4],
24 [0.95, "box1", "left", 440, 4],
25 [0.10, "box2", "left", -55, 4],
26 [0.50, "box2", "left", 145, 4],
27 [0.95, "box2", "left", 432, 4],
28 [0.10, "box3", "left", -106, 4],
29 [0.50, "box3", "left", -441, 4],
30 [0.15, "box4", "left", 513, 4],
31 [0.50, "box4", "left", 200, 4],
32 [0.80, "box4", "left", -98, 4],
35 function setupTest() {
36 document
.getElementById('container').className
= 'animating';
39 runTransitionTest(expectedValues
, setupTest
);
44 <div class=
"box" id=
"box1" style=
"-webkit-transition-timing-function: cubic-bezier(0.3, 1.5, 0.8, 1.5);"></div>
45 <div class=
"box" id=
"box2" style=
"-webkit-transition-timing-function: cubic-bezier(0.4, -0.8, 0.7, 1.7);"></div>
46 <div class=
"box" id=
"box3" style=
"-webkit-transition-timing-function: cubic-bezier(0.7, -2, 1, -1.5);"></div>
47 <div class=
"box" id=
"box4" style=
"-webkit-transition-timing-function: cubic-bezier(0, 4, 1, -3);"></div>
49 <div id=
"result"></div>