Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / block / positioning / 025.html
blob105cf120e7ece0c4761e95fa5419a9d8d2ce99fb
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html40/strict.dtd">
3 <!-- vim:sw=4:et:ts=4
4 -->
5 <html lang="en-US">
6 <head>
7 <title>z-index testcase: 'auto' gives container stacking level of '0' (variant 3) in its own context (position: fixed)</title>
8 <!--Fixed position elements do not establish stacking contexts by default according to the spec. However, some ports, including the Mac port, have changed this behavior and fixed position elements DO create a stacking context. The results are expected to differ on different ports depending on which behavior is being used.-->
9 <meta http-equiv="Content-Style-Type" content="text/css">
10 <link rel="copyright" href="/~dbaron/legal.html">
11 <style type="text/css">
13 div {
14 height: 100px;
15 width: 100px;
16 margin: 0;
17 border: none;
18 padding: 0;
19 position: fixed;
20 top: 0;
21 left: 0;
24 div#outer {
25 z-index: auto;
26 background: green;
29 div#inner {
30 z-index: -1;
31 background: red;
34 </style>
35 </head>
36 <body>
38 <div id="outer">
39 <div id="inner"></div>
40 </div>
42 </body>
43 </html>