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

Side by Side Diff: LayoutTests/animations/3d/transform-perspective.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; 13 -webkit-animation: anim 2s linear;
14 } 14 }
15 15
16 #box2 { 16 #box2 {
17 -webkit-animation: anim2 2s linear; 17 -webkit-animation: anim2 2s linear;
18 } 18 }
19 19
20 @-webkit-keyframes anim { 20 @-webkit-keyframes anim {
21 from { -webkit-transform: perspective(100px); } 21 from { transform: perspective(100px); }
22 to { -webkit-transform: perspective(200px); } 22 to { transform: perspective(200px); }
23 } 23 }
24 24
25 @-webkit-keyframes anim2 { 25 @-webkit-keyframes anim2 {
26 from { -webkit-transform: perspective(1000px); } 26 from { transform: perspective(1000px); }
27 to { -webkit-transform: none; } 27 to { transform: none; }
28 } 28 }
29 </style> 29 </style>
30 <script src="../resources/animation-test-helpers.js" type="text/javascript"></ script> 30 <script src="../resources/animation-test-helpers.js" type="text/javascript"></ script>
31 <script type="text/javascript"> 31 <script type="text/javascript">
32 const expectedValues = [ 32 const expectedValues = [
33 // [time, element-id, property, expected-value, tolerance] 33 // [time, element-id, property, expected-value, tolerance]
34 [0.5, "box", "webkitTransform", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0075 , 0, 0, 0, 1], 0.002], 34 [0.5, "box", "webkitTransform", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0075 , 0, 0, 0, 1], 0.002],
35 [0.5, "box2", "webkitTransform", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0019 9, 0, 0, 0, 1], 0.002], 35 [0.5, "box2", "webkitTransform", [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0019 9, 0, 0, 0, 1], 0.002],
36 ]; 36 ];
37 37
38 function setupTest() 38 function setupTest()
39 { 39 {
40 var box = document.getElementById('box'); 40 var box = document.getElementById('box');
41 box.style.webkitTransform = 'perspective(1000px) rotateX(90deg)'; 41 box.style.webkitTransform = 'perspective(1000px) rotateX(90deg)';
42 } 42 }
43 43
44 runAnimationTest(expectedValues); 44 runAnimationTest(expectedValues);
45 </script> 45 </script>
46 </head> 46 </head>
47 <body> 47 <body>
48 48
49 <div class="box" id="box"></div> 49 <div class="box" id="box"></div>
50 <div class="box" id="box2"></div> 50 <div class="box" id="box2"></div>
51 <div id="result"></div> 51 <div id="result"></div>
52 52
53 </body> 53 </body>
54 </html> 54 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698