Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / transitions / cubic-bezier-overflow-length.html
blob0f8b0ce58359913c8d3021d48e7a305785a0bc60
1 <!doctype html>
2 <html>
3 <head>
4 <title>cubic-bezier value overflow: Lengths</title>
5 <style>
6 .box {
7 position: relative;
8 left: 0;
9 height: 100px;
10 width: 100px;
11 margin: 10px;
12 background-color: blue;
13 -webkit-transition: left 1s linear;
15 .animating > .box {
16 left: 400px;
18 </style>
19 <script src="../animations/resources/animation-test-helpers.js"></script>
20 <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);
40 </script>
41 </head>
42 <body>
43 <div id="container">
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>
48 </div>
49 <div id="result"></div>
50 </body>
51 </html>