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

Side by Side Diff: third_party/WebKit/LayoutTests/paint/invalidation/compositing/become-overlay-composited-layer.html

Issue 2518943002: 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 type="text/css" media="screen"> 3 <style type="text/css" media="screen">
4 #container 4 #container
5 { 5 {
6 position: relative; 6 position: relative;
7 width: 500px; 7 width: 500px;
8 height: 100px; 8 height: 100px;
9 opacity: 0.85; 9 opacity: 0.85;
10 border: 1px solid black; 10 border: 1px solid black;
11 } 11 }
12 12
13 #box 13 #box
14 { 14 {
15 position: absolute; 15 position: absolute;
16 height: 100px; 16 height: 100px;
17 width: 250px; 17 width: 250px;
18 left: 250px; 18 left: 250px;
19 background-color: blue; 19 background-color: blue;
20 -webkit-transition: left 0.2s, top 0.2s; 20 transition: left 0.2s, top 0.2s;
21 } 21 }
22 22
23 #container.right #box 23 #container.right #box
24 { 24 {
25 left: 0px; 25 left: 0px;
26 top: 100px; 26 top: 100px;
27 } 27 }
28 28
29 #fader 29 #fader
30 { 30 {
31 position: absolute; 31 position: absolute;
32 top: 0; 32 top: 0;
33 left: 0; 33 left: 0;
34 background-color: black; 34 background-color: black;
35 width: 50px; 35 width: 50px;
36 height: 50px; 36 height: 50px;
37 opacity: 0.5; 37 opacity: 0.5;
38 -webkit-transition: opacity 0.2s; 38 transition: opacity 0.2s;
39 } 39 }
40 40
41 #container.right #fader { 41 #container.right #fader {
42 opacity: 1; 42 opacity: 1;
43 } 43 }
44 </style> 44 </style>
45 <script type="text/javascript" charset="utf-8"> 45 <script type="text/javascript" charset="utf-8">
46 if (window.testRunner) 46 if (window.testRunner)
47 testRunner.waitUntilDone(); 47 testRunner.waitUntilDone();
48 48
49 function runTest() 49 function runTest()
50 { 50 {
51 var container = document.getElementById("container"); 51 var container = document.getElementById("container");
52 var fader = document.getElementById("fader"); 52 var fader = document.getElementById("fader");
53 fader.addEventListener('webkitTransitionEnd', function() { 53 fader.addEventListener('transitionend', function() {
54 fader.addEventListener('webkitTransitionEnd', function() { 54 fader.addEventListener('transitionend', function() {
55 if (window.testRunner) 55 if (window.testRunner)
56 testRunner.notifyDone(); 56 testRunner.notifyDone();
57 }); 57 });
58 container.className = ""; 58 container.className = "";
59 }); 59 });
60 container.className = "right"; 60 container.className = "right";
61 } 61 }
62 62
63 window.addEventListener('load', runTest, false); 63 window.addEventListener('load', runTest, false);
64 </script> 64 </script>
65 </head> 65 </head>
66 <body> 66 <body>
67 <p><a href="<rdar://problem/6983207>">rdar://problem/6983207</a>Should not l eave blue box behind after moving to the top right.</p> 67 <p><a href="<rdar://problem/6983207>">rdar://problem/6983207</a>Should not l eave blue box behind after moving to the top right.</p>
68 <div id="container"> 68 <div id="container">
69 <div id="box"></div> 69 <div id="box"></div>
70 <div id="fader"></div> 70 <div id="fader"></div>
71 </div> 71 </div>
72 72
73 </body></html> 73 </body></html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698