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

Side by Side Diff: third_party/WebKit/LayoutTests/animations/keyframes-comma-separated.html

Issue 2522123002: CSS Animations: Remove unnecessary webkit prefixes from layout tests (Closed)
Patch Set: 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
OLDNEW
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd"> 2 "http://www.w3.org/TR/html4/loose.dtd">
3 3
4 <html lang="en"> 4 <html lang="en">
5 <head> 5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Keyframes test with comma separated keys</title> 7 <title>Keyframes test with comma separated keys</title>
8 <style type="text/css" media="screen"> 8 <style type="text/css" media="screen">
9 #box { 9 #box {
10 position: absolute; 10 position: absolute;
11 left: 0; 11 left: 0;
12 top: 100px; 12 top: 100px;
13 height: 100px; 13 height: 100px;
14 width: 100px; 14 width: 100px;
15 background-color: blue; 15 background-color: blue;
16 -webkit-animation-duration: 1s; 16 animation-duration: 1s;
17 -webkit-animation-timing-function: linear; 17 animation-timing-function: linear;
18 -webkit-animation-name: anim; 18 animation-name: anim;
19 } 19 }
20 @-webkit-keyframes anim { 20 @keyframes anim {
21 from { left: 50px; } 21 from { left: 50px; }
22 20%, 40% { left: 100px; } 22 20%, 40% { left: 100px; }
23 60%,80%{ left: 200px; } 23 60%,80%{ left: 200px; }
24 to { left: 300px; } 24 to { left: 300px; }
25 } 25 }
26 </style> 26 </style>
27 <script src="resources/animation-test-helpers.js" type="text/javascript" cha rset="utf-8"></script> 27 <script src="resources/animation-test-helpers.js" type="text/javascript" cha rset="utf-8"></script>
28 <script type="text/javascript" charset="utf-8"> 28 <script type="text/javascript" charset="utf-8">
29 29
30 const expectedValues = [ 30 const expectedValues = [
31 // [time, element-id, property, expected-value, tolerance] 31 // [time, element-id, property, expected-value, tolerance]
32 [0.3, "box", "left", 100, 1], 32 [0.3, "box", "left", 100, 1],
33 [0.7, "box", "left", 200, 1], 33 [0.7, "box", "left", 200, 1],
34 ]; 34 ];
35 35
36 runAnimationTest(expectedValues); 36 runAnimationTest(expectedValues);
37 37
38 </script> 38 </script>
39 </head> 39 </head>
40 <body> 40 <body>
41 This test performs an animation of the left property. It should stop for 100ms a t 100px and 200px 41 This test performs an animation of the left property. It should stop for 100ms a t 100px and 200px
42 We test for those values 50ms after it has stopped at each position. Keys in two of the keyframes 42 We test for those values 50ms after it has stopped at each position. Keys in two of the keyframes
43 are comma separated, so these should be correctly broken out into separate keyfr ames. 43 are comma separated, so these should be correctly broken out into separate keyfr ames.
44 <div id="box"> 44 <div id="box">
45 </div> 45 </div>
46 <div id="result"> 46 <div id="result">
47 </div> 47 </div>
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698