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

Side by Side Diff: LayoutTests/animations/transition-and-animation-1.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 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>Transition/Animation Test #1</title> 7 <title>Transition/Animation Test #1</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: 0.5s; 16 -webkit-animation-duration: 0.5s;
17 -webkit-animation-timing-function: linear; 17 -webkit-animation-timing-function: linear;
18 -webkit-animation-name: "anim"; 18 -webkit-animation-name: "anim";
19 -webkit-transition-property: -webkit-transform; 19 -webkit-transition-property: -webkit-transform;
20 -webkit-transition-duration: 10s; 20 -webkit-transition-duration: 10s;
21 } 21 }
22 @-webkit-keyframes "anim" { 22 @-webkit-keyframes "anim" {
23 from { -webkit-transform: translateX(200px); } 23 from { transform: translateX(200px); }
24 to { -webkit-transform: translateX(300px); } 24 to { transform: translateX(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.55, "box", "webkitTransform", "none", null], 32 [0.55, "box", "webkitTransform", "none", null],
33 ]; 33 ];
34 34
35 runAnimationTest(expectedValues, undefined, undefined, 'do-not-use-pause-api '); 35 runAnimationTest(expectedValues, undefined, undefined, 'do-not-use-pause-api ');
36 36
37 </script> 37 </script>
38 </head> 38 </head>
39 <body> 39 <body>
40 This test has a transition and animation on the same property (-webkit-transform ). But the transition is never triggered, 40 This test has a transition and animation on the same property (-webkit-transform ). But the transition is never triggered,
41 so nothing should be moving when the animation finishes. 41 so nothing should be moving when the animation finishes.
42 <div id="box"> 42 <div id="box">
43 </div> 43 </div>
44 <div id="result"> 44 <div id="result">
45 </div> 45 </div>
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698