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

Side by Side Diff: LayoutTests/transitions/transition-end-event-multiple-04.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 <html> 1 <html>
2 <head> 2 <head>
3 <style> 3 <style>
4 .box { 4 .box {
5 position: relative; 5 position: relative;
6 left: 0; 6 left: 0;
7 height: 100px; 7 height: 100px;
8 width: 100px; 8 width: 100px;
9 margin: 10px; 9 margin: 10px;
10 background-color: blue; 10 background-color: blue;
11 -webkit-transform: translate(0); 11 transform: translate(0);
12 -webkit-transition-property: -webkit-transform; 12 -webkit-transition-property: transform;
13 -webkit-transition-duration: 0.5s; 13 -webkit-transition-duration: 0.5s;
14 } 14 }
15 15
16 .box1 { 16 .box1 {
17 -webkit-transform: translate(50px); 17 transform: translate(50px);
18 } 18 }
19 19
20 .box2 { 20 .box2 {
21 -webkit-transform: translate(50px) scale(1.05); 21 transform: translate(50px) scale(1.05);
22 -webkit-transition-duration: 0.55s; 22 -webkit-transition-duration: 0.55s;
23 } 23 }
24 24
25 .box3 { 25 .box3 {
26 -webkit-transform: translate(0); /* same as default */ 26 transform: translate(0); /* same as default */
27 -webkit-transition-duration: 0.3s; 27 -webkit-transition-duration: 0.3s;
28 } 28 }
29 29
30 .box4 { 30 .box4 {
31 -webkit-transform: translate(100px); 31 transform: translate(100px);
32 -webkit-transition-duration: 0.4s; 32 -webkit-transition-duration: 0.4s;
33 } 33 }
34 34
35 .box5 { 35 .box5 {
36 /* nothing */ 36 /* nothing */
37 } 37 }
38 38
39 </style> 39 </style>
40 <script src="transition-end-event-helpers.js"></script> 40 <script src="transition-end-event-helpers.js"></script>
41 <script type="text/javascript"> 41 <script type="text/javascript">
42 42
43 var expectedEndEvents = [ 43 var expectedEndEvents = [
44 // [property-name, element-id, elapsed-time, listen] 44 // [property-name, element-id, elapsed-time, listen]
45 ["-webkit-transform", "box1", 0.5, false], 45 ["transform", "box1", 0.5, false],
46 ["-webkit-transform", "box2", 0.55, false], 46 ["transform", "box2", 0.55, false],
47 ["-webkit-transform", "box4", 0.4, false] 47 ["transform", "box4", 0.4, false]
48 ]; 48 ];
49 49
50 function transitionElement(index) 50 function transitionElement(index)
51 { 51 {
52 var boxes = document.body.getElementsByClassName('box'); 52 var boxes = document.body.getElementsByClassName('box');
53 boxes[index-1].className = "box box" + index; 53 boxes[index-1].className = "box box" + index;
54 } 54 }
55 55
56 function setupTest() 56 function setupTest()
57 { 57 {
(...skipping 21 matching lines...) Expand all
79 <div id="box2" class="box"></div> 79 <div id="box2" class="box"></div>
80 <div id="box3" class="box"></div> 80 <div id="box3" class="box"></div>
81 <div id="box4" class="box"></div> 81 <div id="box4" class="box"></div>
82 <div id="box5" class="box"></div> 82 <div id="box5" class="box"></div>
83 </div> 83 </div>
84 84
85 <div id="result"></div> 85 <div id="result"></div>
86 86
87 </body> 87 </body>
88 </html> 88 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698