| 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 -webkit-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="resources/transition-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], |
| 24 [0.95, "box1", "left", 440, 4], | 24 [0.95, "box1", "left", 440, 4], |
| 25 [0.10, "box2", "left", -55, 4], | 25 [0.10, "box2", "left", -55, 4], |
| 26 [0.50, "box2", "left", 145, 4], | 26 [0.50, "box2", "left", 145, 4], |
| 27 [0.95, "box2", "left", 432, 4], | 27 [0.95, "box2", "left", 432, 4], |
| 28 [0.10, "box3", "left", -106, 4], | 28 [0.10, "box3", "left", -106, 4], |
| 29 [0.50, "box3", "left", -441, 4], | 29 [0.50, "box3", "left", -441, 4], |
| (...skipping 12 matching lines...) Expand all Loading... |
| 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="-webkit-transition-timing-function: cubi
c-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="-webkit-transition-timing-function: cubi
c-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="-webkit-transition-timing-function: cubi
c-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="-webkit-transition-timing-function: cubi
c-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 |