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

Side by Side Diff: LayoutTests/transitions/opacity-transition-zindex.html

Issue 101623002: Drop "only composite opacity animations when already in compositing mode". (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Seperate window.internals and window.testRunner Created 7 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 <!DOCTYPE html> 1 <!DOCTYPE html>
2 2
3 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .container { 6 .container {
7 position: relative; 7 position: relative;
8 height: 300px; 8 height: 300px;
9 width: 300px; 9 width: 300px;
10 margin: 10px; 10 margin: 10px;
(...skipping 29 matching lines...) Expand all
40 <script> 40 <script>
41 if (window.testRunner) 41 if (window.testRunner)
42 testRunner.waitUntilDone(); 42 testRunner.waitUntilDone();
43 43
44 function runTest() 44 function runTest()
45 { 45 {
46 var container = document.getElementById('first'); 46 var container = document.getElementById('first');
47 container.style.opacity = 1; 47 container.style.opacity = 1;
48 48
49 // dump the tree in the middle of the transition 49 // dump the tree in the middle of the transition
50 if (window.testRunner) 50 if (window.internals) {
51 window.setTimeout(function() { 51 window.internals.forceCompositingUpdate(document);
52 var firstElement = document.getElementById('first'); 52 window.internals.pauseAnimations(2.5);
53 internals.pauseAnimations(2.5); 53 }
54 if (window.testRunner) {
54 testRunner.notifyDone(); 55 testRunner.notifyDone();
55 }, 0); 56 }
56 } 57 }
57 // FIXME: this should use runTransitionTest(). 58 // FIXME: this should use runTransitionTest().
58 window.addEventListener('load', runTest, false); 59 window.addEventListener('load', runTest, false);
59 </script> 60 </script>
60 </head> 61 </head>
61 <body> 62 <body>
62 63
63 <div class="container" id="first"> 64 <div class="container" id="first">
64 <div class="box"></div> 65 <div class="box"></div>
65 <div class="indicator"></div> 66 <div class="indicator"></div>
66 </div> 67 </div>
67 68
68 </body> 69 </body>
69 </html> 70 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698