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

Side by Side Diff: LayoutTests/compositing/transitions/singular-scale-transition.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> 1 <!DOCTYPE>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <title>Singular scale</title> 5 <title>Singular scale</title>
6 <style type="text/css" media="screen"> 6 <style type="text/css" media="screen">
7 #box { 7 #box {
8 height: 200px; 8 height: 200px;
9 width: 200px; 9 width: 200px;
10 border: 1px solid black; 10 border: 1px solid black;
11 } 11 }
12 12
13 #inner { 13 #inner {
14 height: 200px; 14 height: 200px;
15 width: 200px; 15 width: 200px;
16 background-color: gray; 16 background-color: gray;
17 -webkit-transform: scale(0); 17 transform: scale(0);
18 -webkit-transition: -webkit-transform 1s linear; 18 -webkit-transition: -webkit-transform 1s linear;
19 } 19 }
20 20
21 #box.final #inner { 21 #box.final #inner {
22 -webkit-transform: scale(1); 22 transform: scale(1);
23 } 23 }
24 24
25 #box:hover #inner { 25 #box:hover #inner {
26 -webkit-transform: scale(1); 26 transform: scale(1);
27 } 27 }
28 </style> 28 </style>
29 29
30 <script src="../../animations/resources/animation-test-helpers.js" type="text/ javascript" charset="utf-8"></script> 30 <script src="../../animations/resources/animation-test-helpers.js" type="text/ javascript" charset="utf-8"></script>
31 <script type="text/javascript" charset="utf-8"> 31 <script type="text/javascript" charset="utf-8">
32 32
33 const expectedValues = [ 33 const expectedValues = [
34 // [time, element-id, property, expected-value, tolerance] 34 // [time, element-id, property, expected-value, tolerance]
35 [0.5, 'inner', '-webkit-transform.0', 0.5, 0.1], 35 [0.5, 'inner', '-webkit-transform.0', 0.5, 0.1],
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.className = 'final'; 41 box.className = 'final';
42 } 42 }
43 runTransitionTest(expectedValues, setupTest, undefined, true /* pixel test * /); 43 runTransitionTest(expectedValues, setupTest, undefined, true /* pixel test * /);
44 </script> 44 </script>
45 </head> 45 </head>
46 <body> 46 <body>
47 <p>Check the pixel result to make sure that the gray square is half way throug h the scale animation.</p> 47 <p>Check the pixel result to make sure that the gray square is half way throug h the scale animation.</p>
48 <div id="box"> 48 <div id="box">
49 <div id="inner"> 49 <div id="inner">
50 </div> 50 </div>
51 </div> 51 </div>
52 52
53 <div id="result"></div> 53 <div id="result"></div>
54 </body> 54 </body>
55 </html> 55 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698