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

Side by Side Diff: LayoutTests/animations/additive-transform-animations.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"> 5 <style type="text/css">
6 .box { 6 .box {
7 height: 100px; 7 height: 100px;
8 width: 100px; 8 width: 100px;
9 background-color: blue; 9 background-color: blue;
10 } 10 }
11 11
12 #box { 12 #box {
13 -webkit-animation: anim 2s linear both; 13 -webkit-animation: anim 2s linear both;
14 } 14 }
15 15
16 @-webkit-keyframes anim { 16 @-webkit-keyframes anim {
17 from { -webkit-transform: rotate(0deg) translate(-100px, 0); } 17 from { transform: rotate(0deg) translate(-100px, 0); }
18 to { -webkit-transform: rotate(180deg) translate(300px, 0); } 18 to { transform: rotate(180deg) translate(300px, 0); }
19 } 19 }
20 </style> 20 </style>
21 <script src="resources/animation-test-helpers.js" type="text/javascript"></scr ipt> 21 <script src="resources/animation-test-helpers.js" type="text/javascript"></scr ipt>
22 <script type="text/javascript"> 22 <script type="text/javascript">
23 const expectedValues = [ 23 const expectedValues = [
24 // [time, element-id, property, expected-value, tolerance] 24 // [time, element-id, property, expected-value, tolerance]
25 [1, "box", "webkitTransform", [0, 1, -1, 0, 0, 100], 0.002], 25 [1, "box", "webkitTransform", [0, 1, -1, 0, 0, 100], 0.002],
26 ]; 26 ];
27 27
28 const doPixelTest = true; 28 const doPixelTest = true;
29 const disablePauseAnimationAPI = false; 29 const disablePauseAnimationAPI = false;
30 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPix elTest); 30 runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPix elTest);
31 </script> 31 </script>
32 </head> 32 </head>
33 <body> 33 <body>
34 34
35 <div class="box" id="box"></div> 35 <div class="box" id="box"></div>
36 <div id="result"></div> 36 <div id="result"></div>
37 37
38 </body> 38 </body>
39 </html> 39 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698