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: Margin at the start of document</title>
5 <link rel="author" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact">
6 <link rel="help" href="http://www.w3.org/TR/CSS21/text.html#spacing-props">
7 <meta name="flags" content="may paged">
8 <meta name="assert" content="The UA may preserve the margin after a forced page break.">
9 <style type="text/css">
10 .test {
11 margin-top: 4em;
12 position: relative;
13 color: blue;
14 page-break-before: always;
15 }
16 .margin {
17 position: relative;
18 bottom: 6em;
19 }
20 </style>
21 </head>
22 <body>
23 <div>This test requires 2 pages. Test passes if lines A through E appear
24 in order on the second page.</div>
25
26 <div class="test">
27 <div>Page 2 Line D</div>
28 <div>Page 2 Line E</div>
29 <div class="margin">Page 2 Line A</div>
30 <div class="margin">Page 2 Line B</div>
31 <div class="margin">Page 2 Line C</div>
32 </div>
33 </body>
34 </html>