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 with a relpos ancestor containing block</title>
5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
6 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/023.xml" type="application/xhtml+xml">
8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#comp-abspos">
9 <style type="text/css">
10 .container { position: relative; background: red; width: 6em;
11 border-top: 1em solid blue; }
12 .test { position: absolute; height: 2em; width: 4em;
13 background: white; color: green;
14 border: solid 1em blue;
15 border-top: none;}
16 </style>
17 </head>
18 <body>
19 <p>There should be a hollow blue rectangle below.</p>
20 <div class="container">
21 <div>
22 <div>
23 <div class="test">
24 </div>
25 </div>
26 </div>
27 </div>
28 </body>
29 </html>