OLD | NEW |
1 <!doctype html> | 1 <!doctype html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>cubic-bezier value overflow: Colors</title> | 4 <title>cubic-bezier value overflow: Colors</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: #404040; | 12 background-color: #404040; |
13 -webkit-transition: background-color 1s linear; | 13 transition: background-color 1s linear; |
14 } | 14 } |
15 .animating > .box { | 15 .animating > .box { |
16 background-color: #C0C0C0; | 16 background-color: #C0C0C0; |
17 } | 17 } |
18 .animating > .box.colored { | 18 .animating > .box.colored { |
19 background-color: papayawhip; | 19 background-color: papayawhip; |
20 } | 20 } |
21 </style> | 21 </style> |
22 <script src="../animations/resources/animation-test-helpers.js"></script> | 22 <script src="../animations/resources/animation-test-helpers.js"></script> |
23 <script> | 23 <script> |
(...skipping 13 matching lines...) Expand all Loading... |
37 | 37 |
38 function setupTest() { | 38 function setupTest() { |
39 document.getElementById('container').className = 'animating'; | 39 document.getElementById('container').className = 'animating'; |
40 } | 40 } |
41 | 41 |
42 runTransitionTest(expectedValues, setupTest); | 42 runTransitionTest(expectedValues, setupTest); |
43 </script> | 43 </script> |
44 </head> | 44 </head> |
45 <body> | 45 <body> |
46 <div id="container"> | 46 <div id="container"> |
47 <div class="box" id="box1" style="-webkit-transition-timing-function: cubi
c-bezier(0.3, 1.5, 0.8, 1.5);"></div> | 47 <div class="box" id="box1" style="transition-timing-function: cubic-bezier
(0.3, 1.5, 0.8, 1.5);"></div> |
48 <div class="box" id="box2" style="-webkit-transition-timing-function: cubi
c-bezier(0.4, -0.8, 0.7, 1.7);"></div> | 48 <div class="box" id="box2" style="transition-timing-function: cubic-bezier
(0.4, -0.8, 0.7, 1.7);"></div> |
49 <div class="box colored" id="box3" style="-webkit-transition-timing-functi
on: cubic-bezier(0.7, -2, 1, -1.5);"></div> | 49 <div class="box colored" id="box3" style="transition-timing-function: cubi
c-bezier(0.7, -2, 1, -1.5);"></div> |
50 <div class="box colored" id="box4" style="-webkit-transition-timing-functi
on: cubic-bezier(0, 4, 1, -3);"></div> | 50 <div class="box colored" id="box4" style="transition-timing-function: cubi
c-bezier(0, 4, 1, -3);"></div> |
51 </div> | 51 </div> |
52 <div id="result"></div> | 52 <div id="result"></div> |
53 </body> | 53 </body> |
54 </html> | 54 </html> |
OLD | NEW |