1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
5 <title>For Bug 26150 - Negative values for animation-delay are ignored</title>
6 <style type="text/css">
12 -webkit-animation-duration: 2s;
13 -webkit-animation-iteration-count: 1;
14 -webkit-animation-timing-function: linear;
18 -webkit-animation-name: square-move;
22 -webkit-animation-name: square-translate;
25 @-webkit-keyframes square-move {
30 @-webkit-keyframes square-translate {
31 0% { -webkit-transform: translateX(0); }
32 100% { -webkit-transform: translateX(600px); }
38 -webkit-animation-delay: -1s;
49 -webkit-animation-delay: -1s;
58 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
61 // The delay of square1 is negative so square1 should be in ahead of square2.
62 const expectedValues = [
63 // [animation-name, time, element-id, property, expected-value, tolerance]
64 ["square-move", 0, "square1", "left", 300, 15],
65 ["square-move", 0, "square2", "left", 0, 15],
66 ["square-move", 0.5, "square1", "left", 450, 15],
67 ["square-move", 0.5, "square2", "left", 150, 15],
68 ["square-translate", 0, "square3", "webkitTransform.4", 300, 20],
69 ["square-translate", 0, "square4", "webkitTransform.4", 0, 20],
70 ["square-translate", 0.5, "square3", "webkitTransform.4", 450, 20],
71 ["square-translate", 0.5, "square4", "webkitTransform.4", 150, 20],
74 runAnimationTest(expectedValues);
80 <div class="square move" id="square1"></div>
81 <div class="square move" id="square2"></div>
82 <div class="square translate" id="square3"></div>
83 <div class="square translate" id="square4"></div>