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

Side by Side Diff: LayoutTests/animations/keyframes-unprefixed-02.html

Issue 23264017: Implement support for unprefixed keyframes rules resolution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 months 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 | Annotate | Revision Log
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</title> 7 <title>Keyframes test</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 -webkit-animation-fill-mode: forwards; 19 animation-fill-mode: forwards;
20 }
21 @-webkit-keyframes anim {
22 from { left: 50px; }
23 to { left: 100px; }
24 }
25 @-webkit-keyframes irrelevant {
26 from { left: 150px; }
27 to { left: 2500px; }
28 } 20 }
29 @-webkit-keyframes anim { 21 @-webkit-keyframes anim {
30 from { left: 200px; } 22 from { left: 200px; }
23 to { left: 700px; }
24 }
25
26 @keyframes anim {
27 from { left: 200px; }
31 to { left: 300px; } 28 to { left: 300px; }
32 } 29 }
33 </style> 30 </style>
34 <script src="resources/animation-test-helpers.js" type="text/javascript" cha rset="utf-8"></script> 31 <script src="resources/animation-test-helpers.js" type="text/javascript" cha rset="utf-8"></script>
35 <script type="text/javascript" charset="utf-8"> 32 <script type="text/javascript" charset="utf-8">
36 33
37 const expectedValues = [ 34 const expectedValues = [
38 // [animation-name, time, element-id, property, expected-value, tolerance] 35 // [animation-name, time, element-id, property, expected-value, tolerance]
39 ["anim", 1, "box", "left", 300, 1], 36 ["anim", 1, "box", "left", 300, 1],
40 ]; 37 ];
41 38
42 runAnimationTest(expectedValues); 39 runAnimationTest(expectedValues);
43 40
44 </script> 41 </script>
45 </head> 42 </head>
46 <body> 43 <body>
47 This test verifies that the last @keyframes rule with a given name is the one us ed. 44 This test verifies that the unprefixed @keyframes rule is correctly parsed and o verride the prefixed keyframe defined before.
48 <div id="box"> 45 <div id="box">
49 </div> 46 </div>
50 <div id="result"> 47 <div id="result">
51 </div> 48 </div>
52 </body> 49 </body>
53 </html> 50 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698