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

Side by Side Diff: LayoutTests/compositing/squashing/squash-above-fixed-subpixel-1-expected.html

Issue 143283011: Make squashing work with subpixel layout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add ASSERT 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 <html>
3 <head>
4 <style>
5 .composited {
6 -webkit-transform: translateZ(0);
7 }
8
9 .background {
10 position: fixed;
11 background-color: lightgray;
12 width: 300px;
13 height: 300px;
14 top: 150px;
15 left: 100px;
16 }
17
18 .cyan {
19 background-color: cyan;
20 }
21
22 .lime {
23 background-color: lime;
24 }
25
26 .overlapping {
27 position: relative;
28 z-index: 1;
29 width: 200px;
30 height: 100.5px;
31 }
32
33 .nonsubpixel {
34 position: relative;
35 z-index: 1;
36 width: 200px;
37 height: 100px;
38 }
39
40 #description {
41 position: absolute;
42 top: 100px;
43 left: 450px;
44 width: 300px;
45 }
46
47 #testResults {
48 display: none;
49 }
50
51 body {
52 margin: 0px;
53 }
54 </style>
55
56 <script>
57 if (window.internals) {
58 internals.settings.setLayerSquashingEnabled(false);
59 }
60
61 </script>
62 </head>
63
64 <body>
65
66 <div id="description">
67 <p>This scenario tests that content is rendered correctly when the
68 squashing composited layer is itself at an integral position but contains
69 a render layer whose position is non-integral.</p>
70 </div>
71
72 <div class="composited background"> </div>
73
74 <div id="paragraph-a" class="nonsubpixel cyan"></div>
75 <div id="paragraph-b" class="overlapping lime"></div>
76 <div id="paragraph-c" class="overlapping cyan"></div>
77 <div id="paragraph-d" class="overlapping lime"></div>
78 <div id="paragraph-e" class="overlapping cyan"></div>
79 <div id="paragraph-f" class="overlapping lime"></div>
80 <div id="paragraph-g" class="overlapping cyan"></div>
81 <div id="paragraph-h" class="overlapping lime"></div>
82 <div id="paragraph-i" class="overlapping cyan"></div>
83 <div id="paragraph-j" class="overlapping lime"></div>
84 <div id="paragraph-k" class="overlapping cyan"></div>
85 <div id="paragraph-l" class="overlapping lime"></div>
86 <div id="paragraph-m" class="overlapping cyan"></div>
87 <div id="paragraph-n" class="overlapping lime"></div>
88
89 </body>
90
91 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698