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

Side by Side Diff: LayoutTests/animations/keyframe-multiple-timing-functions-transform.html

Issue 637763002: Unprefix usage of -webkit-transform in tests (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <style type="text/css"> 3 <style type="text/css">
4 #box { 4 #box {
5 position: relative; 5 position: relative;
6 height: 100px; 6 height: 100px;
7 width: 100px; 7 width: 100px;
8 margin: 20px; 8 margin: 20px;
9 background-color: red; 9 background-color: red;
10 -webkit-transform: translateZ(0); 10 transform: translateZ(0);
11 -webkit-animation: 11 -webkit-animation:
12 horizontal 2s linear 1 alternate, 12 horizontal 2s linear 1 alternate,
13 fade 2s steps(1, end) 1 alternate; 13 fade 2s steps(1, end) 1 alternate;
14 } 14 }
15 15
16 @-webkit-keyframes horizontal { 16 @-webkit-keyframes horizontal {
17 from { -webkit-transform: translateX(0px); } 17 from { transform: translateX(0px); }
18 to { -webkit-transform: translateX(200px); } 18 to { transform: translateX(200px); }
19 } 19 }
20 20
21 @-webkit-keyframes fade { 21 @-webkit-keyframes fade {
22 from { opacity: 1.0; } 22 from { opacity: 1.0; }
23 to { opacity: 0.0; } 23 to { opacity: 0.0; }
24 } 24 }
25 </style> 25 </style>
26 <script src="resources/animation-test-helpers.js" type="text/javascript" cha rset="utf-8"></script> 26 <script src="resources/animation-test-helpers.js" type="text/javascript" cha rset="utf-8"></script>
27 <script type="text/javascript" charset="utf-8"> 27 <script type="text/javascript" charset="utf-8">
28 const expectedValues = [ 28 const expectedValues = [
29 // [time, element-id, property, expected-value, tolerance] 29 // [time, element-id, property, expected-value, tolerance]
30 [0.5, "box", "webkitTransform", [1,0,0,1, 50,0], 20], 30 [0.5, "box", "webkitTransform", [1,0,0,1, 50,0], 20],
31 [1.0, "box", "webkitTransform", [1,0,0,1,100,0], 20], 31 [1.0, "box", "webkitTransform", [1,0,0,1,100,0], 20],
32 [1.5, "box", "webkitTransform", [1,0,0,1,150,0], 20], 32 [1.5, "box", "webkitTransform", [1,0,0,1,150,0], 20],
33 [0.5, "box", "opacity", 1.0, 0.15], 33 [0.5, "box", "opacity", 1.0, 0.15],
34 [0.9, "box", "opacity", 1.0, 0.15], 34 [0.9, "box", "opacity", 1.0, 0.15],
35 [1.5, "box", "opacity", 1.0, 0.15], 35 [1.5, "box", "opacity", 1.0, 0.15],
36 ]; 36 ];
37 37
38 // pixel test image has to have 1.0 opacity. 38 // pixel test image has to have 1.0 opacity.
39 var doPixelTest = true; 39 var doPixelTest = true;
40 runAnimationTest(expectedValues, null, null, null, doPixelTest); 40 runAnimationTest(expectedValues, null, null, null, doPixelTest);
41 </script> 41 </script>
42 </head> 42 </head>
43 <body> 43 <body>
44 <div id="box"></div> 44 <div id="box"></div>
45 <div id="result"></div> 45 <div id="result"></div>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698