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

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

Issue 183833016: Add some incremental compositing tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix typo 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
« no previous file with comments | « no previous file | LayoutTests/compositing/squashing/visibility-composited-squashing-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 .set {
6 position: absolute;
7 top: 8px;
8 }
9 .box {
10 height: 100px;
11 width: 100px;
12 background-color: lightblue;
13 }
14 .squashed {
15 height: 40px;
16 width: 40px;
17 background-color: lightgreen;
18 position: absolute;
19 left: 16px;
20 }
21 .hidden {
22 visibility: hidden;
23 }
24 .visible {
25 visibility: visible;
26 }
27 .composited {
28 -webkit-transform: translateZ(1px);
29 }
30 </style>
31 <script>
32 if (window.testRunner) {
33 testRunner.waitUntilDone();
34 internals.settings.setLayerSquashingEnabled(true);
35 }
36 requestAnimationFrame(function() {
37 requestAnimationFrame(function() {
38 document.getElementById('target1').classList.add('visible');
39 document.getElementById('target2').classList.add('visible');
40 setTimeout(function() {
41 if (window.testRunner)
42 testRunner.notifyDone();
43 });
44 });
45 });
46 </script>
47 </head>
48 <body>
49 <!-- This test checks that squashed RenderLayers are painted even if not all
50 of the RenderLayers squahed into a given GraphicsLayer are visible. -->
51 <div class="set">
52 <div class="composited box"></div>
53 <div class="squashed hidden" style="top: 4px"></div>
54 <div id="target1" class="squashed hidden" style="top: 54px"></div>
55 </div>
56
57 <div class="set" style="top: 116px">
58 <div class="composited box"></div>
59 <div id="target2" class="squashed hidden" style="top: 4px"></div>
60 <div class="squashed hidden" style="top: 54px"></div>
61 </div>
62 </body>
63 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/compositing/squashing/visibility-composited-squashing-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698