| internals.settings.setSpringTimingFunctionEnabled(true); |
| <style type="text/css" media="screen"> |
| animation-timing-function: spring(1 100 10 0); |
| <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script> |
| <script type="text/javascript" charset="utf-8"> |
| // [animation-name, time, element-id, property, expected-value, tolerance] |
| ["anim", 0.25, "box1", "left", 512, 5], |
| ["anim", 0.50, "box1", "left", 537, 5], |
| ["anim", 0.75, "box1", "left", 487, 5], |
| runAnimationTest(expectedValues); |
| This test performs an animation of the left property. It animates over 1 second. |
| It takes 3 snapshots and expects each result to be within a specified range. |
| <div class="box" id="box1"></div> |