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

Side by Side Diff: LayoutTests/animations/some-keyframes-empty.html

Issue 23875044: Web Animations: Correctly handle incomplete keyframes in CSS animations (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Handle end keyframes first Created 7 years, 2 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
« no previous file with comments | « no previous file | LayoutTests/animations/some-keyframes-empty-expected.txt » ('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> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <style type="text/css" media="screen"> 4 <style type="text/css" media="screen">
5 #box1 { 5 #test {
6 position: relative; 6 position: relative;
7 margin: 10px;
8 left: 0;
9 width: 100px;
7 height: 100px; 10 height: 100px;
8 width: 100px;
9 left: 0;
10 background-color: blue; 11 background-color: blue;
11 margin: 0;
12 -webkit-animation-duration: 2s; 12 -webkit-animation-duration: 2s;
13 -webkit-animation-timing-function: linear; 13 -webkit-animation-name: test;
14 -webkit-animation-iteration-count: 2;
15 -webkit-animation-direction: alternate;
16 -webkit-animation-name: move;
17 } 14 }
18 @-webkit-keyframes move { 15 @-webkit-keyframes test {
19 from { 16 from {
20 opacity: 1; 17 left: 100px;
18 }
19 25% {
20 -webkit-animation-timing-function: linear;
21 } 21 }
22 50% { 22 50% {
23 opacity: 1;
24 left: 100px;
25 } 23 }
26 to { 24 to {
27 opacity: 1; 25 left: 200px;
28 } 26 }
29 } 27 }
30
31 /* Test reversing animation with missing values */
32
33 </style> 28 </style>
34 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script> 29 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script>
35 <script type="text/javascript" charset="utf-8"> 30 <script type="text/javascript" charset="utf-8">
36 31
37 const expectedValues = [ 32 const expectedValues = [
38 // [animation-name, time, element-id, property, expected-value, tolerance] 33 // [animation-name, time, element-id, property, expected-value, tolerance]
39 ["move", 1, "box1", "left", 100, 15], 34 ["test", 0.25, "test", "left", 113, 15],
40 ["move", 2, "box1", "left", 0, 15], 35 ["test", 0.5, "test", "left", 132, 15],
41 ["move", 3, "box1", "left", 100, 15],
42 ]; 36 ];
43 37
44 runAnimationTest(expectedValues); 38 runAnimationTest(expectedValues);
45 </script> 39 </script>
46 </head> 40 </head>
47 <body> 41 <body>
48 <div id="box1"></div> 42 <p>Tests that when an animation uses keyframes which contains no properties, tho se keyframes are ignored.</p>
43 <div id="test"></div>
49 <div id="result"> 44 <div id="result">
50 </div> 45 </div>
51 </body> 46 </body>
52 </html> 47 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/animations/some-keyframes-empty-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698