1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html lang="en">
3 <head>
4 <title>CSS Test: Absolutely positioned children of overflow: scroll</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/002.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 html, body { margin: 0; border: 0; padding: 0; }
10 .control { color: yellow; background: red; width: 10em; margin: 0 0 0 auto; }
11 .overflow { width: 8em; height: 8em; overflow: scroll; }
12 .positioned { color: white; background: green; position: absolute; top: 0; right: 0; width: 10em; }
13 </style>
14 </head>
15 <body>
16 <div class="control">FAIL</div>
17 <p>Ignore the scrollbars below.</p>
18 <div class="overflow">
19 <div class="positioned">PASS</div>
20 </div>
21 </body>
22 </html>