1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <head>
4 <title>CSS Test: Positioning, Overflow, and Stacking: Empty positioned children of 'overflow:auto' boxes</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/overflow/010.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow-clipping">
8 <style type="text/css">
9 #outer {
10 overflow: auto; /* this should have no visible effect as the element sizes vertically to fit its contents */
11 color: green;
12 }
13 #inner {
14 position: absolute; /* relative to the viewport, not that it matters */
15 z-index: -1; /* this should have no effect, as the element is fully transparent anyway */
16 }
17 </style>
18 </head>
19 <body>
20 <p>There should be green text below.</p>
21 <div id="outer">
22 This text should be green.
23 <div id="inner"> </div>
24 </div>
25 </body>
26 </html>