Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / layer-creation / overlap-negative-z-index-multiple.html
blob4d14f019a75810f80fd7f0c1b1263463d5914ae6
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
6 .composited {
7 transform:translatez(0);
10 .box {
11 width: 100px;
12 height: 100px;
15 .green {
16 background-color: green;
19 .lime {
20 background-color: lime;
23 .blue {
24 background-color: blue;
27 .behind {
28 z-index: -3;
29 position: absolute;
30 top: 50px;
31 left: 50px;
34 .inmiddle {
35 z-index: -2;
36 position: absolute;
37 top: 80px;
38 left: 80px;
41 .ontop {
42 z-index: -1;
43 position: absolute;
44 top: 110px;
45 left: 110px;
48 #layertree {
49 position: absolute;
50 left: 10000px;
51 top: 0px;
54 body {
55 overflow: hidden;
58 </style>
59 <script>
60 if (window.testRunner) {
61 testRunner.dumpAsTextWithPixelResults();
62 testRunner.waitUntilDone();
65 window.addEventListener('load', function() {
66 if (window.testRunner) {
67 document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
68 testRunner.notifyDone();
70 }, false);
71 </script>
73 </head>
75 <body>
76 <!-- This green div should be completely underneath the lime div -->
77 <div class="composited green box behind"> </div>
79 <!-- This lime colored div should correctly detect overlap and become composited. -->
80 <div class="lime box inmiddle"> </div>
82 <!-- The blue colord div should also correctly detect overlap on top of the second layer. -->
83 <div class="blue box ontop"> </div>
85 <pre id="layertree"></pre>
86 </body>
88 </html>