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

Side by Side Diff: LayoutTests/compositing/transitions/transitions-have-composited-layers.html

Issue 14651028: Promote RenderLayers that have a transition on opacity, transform, or filter (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <style>
4 #notransition {
5 position: absolute;
6 top: 0px;
7 left: 0px;
8 width: 50px;
9 height: 50px;
10 background-color: red;
11 }
12
13 #opacitytransition {
14 position: absolute;
15 top: 0px;
16 left: 60px;
17 height: 50px;
18 width: 50px;
19 background-color: green;
20 transition: opacity 1s;
21 }
22
23 #transformtransition {
24 position: absolute;
25 left: 120px;
26 top: 0px;
27 width: 50px;
28 height: 50px;
29 background-color: green;
30 transition: -webkit-transform 1s;
31 }
32
33 #layertree {
34 position: absolute;
35 left: 10000px;
36 top: 0px;
37 }
38 </style>
39
40 <script>
41 if (window.testRunner) {
42 testRunner.dumpAsText();
43 testRunner.waitUntilDone();
44 }
45
46 window.addEventListener('load', function() {
47 if (window.testRunner) {
48 document.getElementById("layertree").innerText = window.internals.la yerTreeAsText(document);
49 testRunner.notifyDone();
50 }
51 }, false);
52 </script>
53
54 <body>
55 <!-- The red square shouldn't composite. -->
56 <div id="notransition"></div>
57
58 <!-- This green square should composite because it has a transition on opaci ty. -->
59 <div id="opacitytransition"></div>
60
61 <!-- This green square should composite because it has a transition on trans form. -->
62 <div id="transformtransition"></div>
63
64 <pre id="layertree"></pre>
65 </body>
66 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698