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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/geometry/partial-layout-update.html

Issue 2518943002: CSS Transitions: Reduce usage of webkit prefix in layout tests (Closed)
Patch Set: Created 4 years, 1 month 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 <html> 2 <html>
3 <head> 3 <head>
4 <title>Partial layout compositing update</title> 4 <title>Partial layout compositing update</title>
5 5
6 <style type="text/css" media="screen"> 6 <style type="text/css" media="screen">
7 .container { 7 .container {
8 position: relative; 8 position: relative;
9 width: 400px; 9 width: 400px;
10 height: 200px; 10 height: 200px;
11 border: 1px solid black; 11 border: 1px solid black;
12 overflow: hidden; 12 overflow: hidden;
13 } 13 }
14 14
15 .panel { 15 .panel {
16 position: absolute; 16 position: absolute;
17 top: 0px; 17 top: 0px;
18 left: 200px; 18 left: 200px;
19 width: 200px; 19 width: 200px;
20 height: 200px; 20 height: 200px;
21 z-index: 3; 21 z-index: 3;
22 background-color: #bbb; 22 background-color: #bbb;
23 -webkit-transition: left 0.1s linear; 23 transition: left 0.1s linear;
24 } 24 }
25 25
26 .box { 26 .box {
27 width: 100px; 27 width: 100px;
28 height: 100px; 28 height: 100px;
29 } 29 }
30 30
31 .panel .content { 31 .panel .content {
32 background-color: green; 32 background-color: green;
33 transform: translateZ(0); 33 transform: translateZ(0);
34 } 34 }
35 35
36 .indicator { 36 .indicator {
37 position: absolute; 37 position: absolute;
38 top: 0; 38 top: 0;
39 left: 0; 39 left: 0;
40 background-color: red; 40 background-color: red;
41 } 41 }
42 </style> 42 </style>
43 <script type="text/javascript" charset="utf-8"> 43 <script type="text/javascript" charset="utf-8">
44 if (window.testRunner) 44 if (window.testRunner)
45 testRunner.waitUntilDone(); 45 testRunner.waitUntilDone();
46 46
47 function startProgram() 47 function startProgram()
48 { 48 {
49 var panel = document.getElementById("panel"); 49 var panel = document.getElementById("panel");
50 panel.addEventListener('webkitTransitionEnd', function() { 50 panel.addEventListener('transitionend', function() {
51 if (window.testRunner) 51 if (window.testRunner)
52 window.setTimeout(function() { testRunner.notifyDone(); }, 0); 52 window.setTimeout(function() { testRunner.notifyDone(); }, 0);
53 }, false); 53 }, false);
54 panel.style.left = "0"; 54 panel.style.left = "0";
55 } 55 }
56 56
57 window.addEventListener('load', startProgram, false) 57 window.addEventListener('load', startProgram, false)
58 </script> 58 </script>
59 </head> 59 </head>
60 <body> 60 <body>
61 61
62 <p>The green box should always obscure the red box below.</p> 62 <p>The green box should always obscure the red box below.</p>
63 <div class="container"> 63 <div class="container">
64 <div id="panel" class="panel"> 64 <div id="panel" class="panel">
65 <div class="indicator box"></div> 65 <div class="indicator box"></div>
66 <div class="content box"></div> 66 <div class="content box"></div>
67 </div> 67 </div>
68 </div> 68 </div>
69 69
70 </body> 70 </body>
71 </html> 71 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698