Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / layer-creation / overlap-negative-z-index.html
blobe4c4e4cfd70406ffc700f743a8c3cfe0a9978e33
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
6 .composited {
7 transform:translatez(0);
10 .box {
11 width: 100px;
12 height: 100px;
15 .red {
16 background-color: red;
19 .lime {
20 background-color: lime;
23 .behind {
24 z-index: -2;
25 position: absolute;
26 top: 100px;
27 left: 100px;
30 .ontop {
31 z-index: -1;
32 position: absolute;
33 top: 100px;
34 left: 100px;
37 #layertree {
38 position: absolute;
39 left: 10000px;
40 top: 0px;
43 body {
44 overflow: hidden;
47 </style>
48 <script>
49 if (window.testRunner) {
50 testRunner.dumpAsTextWithPixelResults();
51 testRunner.waitUntilDone();
54 window.addEventListener('load', function() {
55 if (window.testRunner) {
56 document.getElementById("layertree").innerText = window.internals.layerTreeAsText(document);
57 testRunner.notifyDone();
59 }, false);
60 </script>
62 </head>
64 <body>
65 <!-- This red div should be completely underneath the green div -->
66 <div class="composited red box behind"> </div>
68 <!-- This lime colored div should correctly detect overlap and become composited. -->
69 <div class="lime box ontop"> </div>
71 <pre id="layertree"></pre>
72 </body>
74 </html>