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

Side by Side Diff: third_party/WebKit/LayoutTests/transitions/transition-end-event-attributes.html

Issue 2521493002: CSS Transitions: Reduce usage of -webkit prefix in layout tests (Closed)
Patch Set: Created 4 years 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-transition-property: left; 11 transition-property: left;
12 -webkit-transition-duration: 0.5s; 12 transition-duration: 0.5s;
13 } 13 }
14 </style> 14 </style>
15 <script src="transition-end-event-helpers.js"></script> 15 <script src="transition-end-event-helpers.js"></script>
16 <script type="text/javascript"> 16 <script type="text/javascript">
17 17
18 var expectedEndEvents = [ 18 var expectedEndEvents = [
19 // [property-name, element-id, elapsed-time, listen] 19 // [property-name, element-id, elapsed-time, listen]
20 ["left", "box1", 0.5] 20 ["left", "box1", 0.5]
21 ]; 21 ];
22 22
23 function setupTest() 23 function setupTest()
24 { 24 {
25 var box = document.getElementById('box1'); 25 var box = document.getElementById('box1');
26 box.style.left = '200px'; 26 box.style.left = '200px';
27 } 27 }
28 28
29 runTransitionTest(expectedEndEvents, setupTest); 29 runTransitionTest(expectedEndEvents, setupTest);
30 </script> 30 </script>
31 </head> 31 </head>
32 <body> 32 <body>
33 33
34 <p>Initiating a 500ms transition on the left property of box1.</p> 34 <p>Initiating a 500ms transition on the left property of box1.</p>
35 35
36 <div id="container"> 36 <div id="container">
37 <div id="box1" class="box" onwebkittransitionend="recordTransitionEndEvent(eve nt);"></div> 37 <div id="box1" class="box" ontransitionend="recordTransitionEndEvent(event);"> </div>
38 </div> 38 </div>
39 39
40 <div id="result"></div> 40 <div id="result"></div>
41 41
42 </body> 42 </body>
43 </html> 43 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698