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

Side by Side Diff: LayoutTests/animations/keyframe-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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style type="text/css" media="screen"> 5 <style type="text/css" media="screen">
6 6
7 #container { 7 #container {
8 position: relative; 8 position: relative;
9 border: 1px solid black; 9 border: 1px solid black;
10 height: 100px; 10 height: 100px;
11 width: 700px; 11 width: 700px;
12 } 12 }
13 13
14 #box { 14 #box {
15 position: absolute; 15 position: absolute;
16 height: 100px; 16 height: 100px;
17 width: 100px; 17 width: 100px;
18 background-color: blue; 18 background-color: blue;
19 -webkit-animation-name: move; 19 -webkit-animation-name: move;
20 -webkit-animation-duration: 1.5s; 20 -webkit-animation-duration: 1.5s;
21 } 21 }
22 22
23 @-webkit-keyframes move { 23 @-webkit-keyframes move {
24 0% { 24 0% {
25 -webkit-transform: translateX(0); 25 transform: translateX(0);
26 -webkit-animation-timing-function: ease-out; 26 -webkit-animation-timing-function: ease-out;
27 } 27 }
28 10% { 28 10% {
29 -webkit-transform: translateX(100px); 29 transform: translateX(100px);
30 -webkit-animation-timing-function: linear; 30 -webkit-animation-timing-function: linear;
31 } 31 }
32 90% { 32 90% {
33 -webkit-transform: translateX(500px); 33 transform: translateX(500px);
34 -webkit-animation-timing-function: ease-in; 34 -webkit-animation-timing-function: ease-in;
35 } 35 }
36 100% { 36 100% {
37 -webkit-transform: translateX(600px); 37 transform: translateX(600px);
38 } 38 }
39 } 39 }
40 40
41 </style> 41 </style>
42 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script> 42 <script src="resources/animation-test-helpers.js" type="text/javascript" chars et="utf-8"></script>
43 <script type="text/javascript" charset="utf-8"> 43 <script type="text/javascript" charset="utf-8">
44 44
45 const expectedValues = [ 45 const expectedValues = [
46 // [time, element-id, property, expected-value, tolerance] 46 // [time, element-id, property, expected-value, tolerance]
47 [0.75, "box", "webkitTransform.4", 300, 20], 47 [0.75, "box", "webkitTransform.4", 300, 20],
48 ]; 48 ];
49 49
50 runAnimationTest(expectedValues); 50 runAnimationTest(expectedValues);
51 </script> 51 </script>
52 </head> 52 </head>
53 <body> 53 <body>
54 54
55 Tests whether timing functions inside keyframes are respected. 55 Tests whether timing functions inside keyframes are respected.
56 <div id="container"> 56 <div id="container">
57 <div id="box"></div> 57 <div id="box"></div>
58 </div> 58 </div>
59 <div id="result"> 59 <div id="result">
60 </div> 60 </div>
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW
« no previous file with comments | « LayoutTests/animations/keyframe-multiple-timing-functions-transform.html ('k') | LayoutTests/animations/matrix-anim.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698