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: Stacking order and overflow</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/overflow/002.html" type="text/html">
7 <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#overflow">
8 <style type="text/css">
9 div { border: solid; margin: 1em; height: 5em; width: 5em; }
10 div p { margin: 0 0 -5em 0; height: 5em; width: 5em; }
11 .a .before { background: maroon; color: white; }
12 .a .scroll { background: red; overflow: scroll; }
13 .a .after { background: lime; }
14 .b .before { background: maroon; }
15 .b .scroll { background: red; color: white; overflow: scroll; }
16 .b .after { background: lime; }
17 </style>
18 </head>
19 <body>
20 <p>There should be two white-on-green squares below, labelled A and B, with black borders. Scrollbars <em>may</em> be visible if they are visible identically in both cases.</p>
21 <div class="a">
22 <p class="before">A</p>
23 <p class="scroll"></p>
24 <p class="after"></p>
25 </div>
26 <div class="b">
27 <p class="before"></p>
28 <p class="scroll">B</p>
29 <p class="after"></p>
30 </div>
31 </body>
32 </html>