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

Side by Side Diff: LayoutTests/compositing/visibility/visibility-composited-incremental-update.html

Issue 183833016: Add some incremental compositing tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reupload Created 6 years, 9 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 <!DOCTYPE html>
2
3 <html>
4 <head>
5 <style>
6 .set {
7 position: absolute;
8 top: 8px;
9 }
10 .box {
11 height: 100px;
12 width: 100px;
13 background-color: blue;
14 }
15
16 .hidden {
17 visibility: hidden;
18 }
19
20 .container.hidden {
21 outline: 4px solid red;
22 }
23
24 .visible {
25 visibility: visible;
26 }
27 .should-be-hidden {
28 background-color: red !important;
29 }
30 .should-be-visible {
31 background-color: green !important;
32 }
33 .composited {
34 -webkit-transform: translateZ(1px);
35 }
36
37 .visible-indicator {
38 background-color: green;
39 }
40
41 .hidden-indicator {
42 background-color: red;
43 }
44 </style>
45 <script>
46 if (window.testRunner)
47 testRunner.waitUntilDone();
48 requestAnimationFrame(function() {
49 requestAnimationFrame(function() {
50 document.getElementById('target').classList.add('visible');
51 setTimeout(function() {
52 if (window.testRunner)
53 testRunner.notifyDone();
54 });
55 });
56 });
57 </script>
58 </head>
59 <body>
60 <div class="set">
chrishtr 2014/03/03 21:40:32 Same comments here as in the other HTML file.
abarth-chromium 2014/03/03 22:01:31 ok
61 <div class="hidden-indicator box"></div>
62 <div class="visible-indicator box"></div>
63 <div class="hidden-indicator box"></div>
64 </div>
65
66 <div class="set">
67 <div class="hidden container composited">
68 <div class="visible box should-be-visible"></div>
69 </div>
70
71 <div class="hidden container composited">
72 <div class="box should-be-hidden"></div>
73 </div>
74
75 <div class="hidden container composited">
76 <div id="target" class="box should-be-visible"></div>
77 </div>
78 </div>
79 </body>
80 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698