OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>cubic-bezier value overflow: Lengths</title> | 4 <title>cubic-bezier value overflow: Lengths</title> |
5 <style> | 5 <style> |
6 .box { | 6 .box { |
7 position: relative; | 7 position: relative; |
8 left: 0; | 8 left: 0; |
9 height: 100px; | 9 height: 100px; |
10 width: 100px; | 10 width: 100px; |
11 margin: 10px; | 11 margin: 10px; |
12 background-color: blue; | 12 background-color: blue; |
13 -webkit-transition: left 1s linear; | 13 transition: left 1s linear; |
14 } | 14 } |
15 .animating > .box { | 15 .animating > .box { |
16 left: 400px; | 16 left: 400px; |
17 } | 17 } |
18 </style> | 18 </style> |
19 <script src="../animations/resources/animation-test-helpers.js"></script> | 19 <script src="../animations/resources/animation-test-helpers.js"></script> |
20 <script> | 20 <script> |
21 const expectedValues = [ | 21 const expectedValues = [ |
22 // [time, element-id, property, expected-value, tolerance] | 22 // [time, element-id, property, expected-value, tolerance] |
23 [0.50, "box1", "left", 488, 4], | 23 [0.50, "box1", "left", 488, 4], |
(...skipping 10 matching lines...) Expand all Loading... |
34 | 34 |
35 function setupTest() { | 35 function setupTest() { |
36 document.getElementById('container').className = 'animating'; | 36 document.getElementById('container').className = 'animating'; |
37 } | 37 } |
38 | 38 |
39 runTransitionTest(expectedValues, setupTest); | 39 runTransitionTest(expectedValues, setupTest); |
40 </script> | 40 </script> |
41 </head> | 41 </head> |
42 <body> | 42 <body> |
43 <div id="container"> | 43 <div id="container"> |
44 <div class="box" id="box1" style="-webkit-transition-timing-function: cubi
c-bezier(0.3, 1.5, 0.8, 1.5);"></div> | 44 <div class="box" id="box1" style="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: cubi
c-bezier(0.4, -0.8, 0.7, 1.7);"></div> | 45 <div class="box" id="box2" style="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: cubi
c-bezier(0.7, -2, 1, -1.5);"></div> | 46 <div class="box" id="box3" style="transition-timing-function: cubic-bezier
(0.7, -2, 1, -1.5);"></div> |
47 <div class="box" id="box4" style="-webkit-transition-timing-function: cubi
c-bezier(0, 4, 1, -3);"></div> | 47 <div class="box" id="box4" style="transition-timing-function: cubic-bezier
(0, 4, 1, -3);"></div> |
48 </div> | 48 </div> |
49 <div id="result"></div> | 49 <div id="result"></div> |
50 </body> | 50 </body> |
51 </html> | 51 </html> |
OLD | NEW |