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

Side by Side Diff: LayoutTests/compositing/reflections/nested-reflection-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 html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
5 <style> 5 <style>
6 .outer { 6 .outer {
7 width: 120px; 7 width: 120px;
8 height: 230px; 8 height: 230px;
9 margin: 20px; 9 margin: 20px;
10 border: 1px solid black; 10 border: 1px solid black;
(...skipping 10 matching lines...) Expand all
21 margin: 10px; 21 margin: 10px;
22 width: 100px; 22 width: 100px;
23 height: 100px; 23 height: 100px;
24 background-color: green; 24 background-color: green;
25 text-align: center; 25 text-align: center;
26 font-size: 50pt; 26 font-size: 50pt;
27 -webkit-transition: -webkit-transform 1s linear; 27 -webkit-transition: -webkit-transform 1s linear;
28 } 28 }
29 29
30 .rotated { 30 .rotated {
31 -webkit-transform: rotate(90deg); 31 transform: rotate(90deg);
32 } 32 }
33 .composited { 33 .composited {
34 -webkit-transform: translateZ(0); 34 transform: translateZ(0);
35 } 35 }
36 </style> 36 </style>
37 <script src="../../animations/resources/animation-test-helpers.js" type="text/ javascript" charset="utf-8"></script> 37 <script src="../../animations/resources/animation-test-helpers.js" type="text/ javascript" charset="utf-8"></script>
38 <script type="text/javascript" charset="utf-8"> 38 <script type="text/javascript" charset="utf-8">
39 39
40 const expectedValues = [ 40 const expectedValues = [
41 // [time, element-id, property, expected-value, tolerance] 41 // [time, element-id, property, expected-value, tolerance]
42 [0.5, 'inner', '-webkit-transform.1', 0.76, 0.1], 42 [0.5, 'inner', '-webkit-transform.1', 0.76, 0.1],
43 ]; 43 ];
44 44
45 function setupTest() 45 function setupTest()
46 { 46 {
47 document.getElementById('inner').className = 'rotated'; 47 document.getElementById('inner').className = 'rotated';
48 } 48 }
49 runTransitionTest(expectedValues, setupTest, undefined, true /* pixel test * /); 49 runTransitionTest(expectedValues, setupTest, undefined, true /* pixel test * /);
50 </script> 50 </script>
51 </head> 51 </head>
52 <body> 52 <body>
53 <div class="outer composited"> 53 <div class="outer composited">
54 <div class="reflected composited"> 54 <div class="reflected composited">
55 <div id="inner"> 55 <div id="inner">
56 1 56 1
57 </div> 57 </div>
58 </div> 58 </div>
59 </div> 59 </div>
60 <div id="result"></div> 60 <div id="result"></div>
61 </body> 61 </body>
62 </html> 62 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698