Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: third_party/WebKit/LayoutTests/animations/negative-delay.html

Issue 2518273002: Remove unnecessary webkit prefixes from animation layout tests (Closed)
Patch Set: remove trailing space Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/negative-delay-events.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd"> 2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html> 3 <html>
4 <head> 4 <head>
5 <title>For Bug 26150 - Negative values for animation-delay are ignored</title> 5 <title>For Bug 26150 - Negative values for animation-delay are ignored</title>
6 <style type="text/css"> 6 <style type="text/css">
7 .square { 7 .square {
8 background: blue; 8 background: blue;
9 width: 20px; 9 width: 20px;
10 height: 20px; 10 height: 20px;
11 position: absolute; 11 position: absolute;
12 -webkit-animation-duration: 2s; 12 animation-duration: 2s;
13 -webkit-animation-iteration-count: 1; 13 animation-iteration-count: 1;
14 -webkit-animation-timing-function: linear; 14 animation-timing-function: linear;
15 } 15 }
16 16
17 .move { 17 .move {
18 -webkit-animation-name: square-move; 18 animation-name: square-move;
19 } 19 }
20 20
21 .translate { 21 .translate {
22 -webkit-animation-name: square-translate; 22 animation-name: square-translate;
23 } 23 }
24 24
25 @-webkit-keyframes square-move { 25 @keyframes square-move {
26 0% { left: 0px; } 26 0% { left: 0px; }
27 100% { left: 600px; } 27 100% { left: 600px; }
28 } 28 }
29 29
30 @-webkit-keyframes square-translate { 30 @keyframes square-translate {
31 0% { transform: translateX(0); } 31 0% { transform: translateX(0); }
32 100% { transform: translateX(600px); } 32 100% { transform: translateX(600px); }
33 } 33 }
34 34
35 #square1 { 35 #square1 {
36 top: 20px; 36 top: 20px;
37 left: 20px; 37 left: 20px;
38 -webkit-animation-delay: -1s; 38 animation-delay: -1s;
39 } 39 }
40 40
41 #square2 { 41 #square2 {
42 top: 60px; 42 top: 60px;
43 left: 20px; 43 left: 20px;
44 } 44 }
45 45
46 #square3 { 46 #square3 {
47 top: 100px; 47 top: 100px;
48 left: 20px; 48 left: 20px;
49 -webkit-animation-delay: -1s; 49 animation-delay: -1s;
50 } 50 }
51 51
52 #square4 { 52 #square4 {
53 top: 140px; 53 top: 140px;
54 left: 20px; 54 left: 20px;
55 } 55 }
56 </style> 56 </style>
57 57
58 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script> 58 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script>
59 59
60 <script> 60 <script>
61 // The delay of square1 is negative so square1 should be in ahead of square2 . 61 // The delay of square1 is negative so square1 should be in ahead of square2 .
62 const expectedValues = [ 62 const expectedValues = [
63 // [time, element-id, property, expected-value, tolerance] 63 // [time, element-id, property, expected-value, tolerance]
64 [0, "square1", "left", 300, 15], 64 [0, "square1", "left", 300, 15],
65 [0, "square2", "left", 0, 15], 65 [0, "square2", "left", 0, 15],
66 [0.5, "square1", "left", 450, 15], 66 [0.5, "square1", "left", 450, 15],
67 [0.5, "square2", "left", 150, 15], 67 [0.5, "square2", "left", 150, 15],
68 [0, "square3", "webkitTransform.4", 300, 20], 68 [0, "square3", "transform.4", 300, 20],
69 [0, "square4", "webkitTransform.4", 0, 20], 69 [0, "square4", "transform.4", 0, 20],
70 [0.5, "square3", "webkitTransform.4", 450, 20], 70 [0.5, "square3", "transform.4", 450, 20],
71 [0.5, "square4", "webkitTransform.4", 150, 20], 71 [0.5, "square4", "transform.4", 150, 20],
72 ]; 72 ];
73 73
74 runAnimationTest(expectedValues); 74 runAnimationTest(expectedValues);
75 </script> 75 </script>
76 </head> 76 </head>
77 77
78 <body> 78 <body>
79 79
80 <div class="square move" id="square1"></div> 80 <div class="square move" id="square1"></div>
81 <div class="square move" id="square2"></div> 81 <div class="square move" id="square2"></div>
82 <div class="square translate" id="square3"></div> 82 <div class="square translate" id="square3"></div>
83 <div class="square translate" id="square4"></div> 83 <div class="square translate" id="square4"></div>
84 84
85 <div id="result"> 85 <div id="result">
86 </div> 86 </div>
87 87
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/animations/negative-delay-events.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698