margin-collapse-160

Margins should not propagate into the next page

WeasyPrint

This browser

Flags
paged

Source

 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: Margins should not propagate into the next page</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/block/margin-collapse/060.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/box.html#collapsing-margins">
 9   <meta name="flags" content="paged">
10   <style type="text/css">
11    html { background: silver; }
12    body, body * { display: block; margin: 0; border: 0; padding: 0; }
13    .a { page-break-after: always; }
14    .c { margin: 0 0 1000em 0; }
15    .b { margin: 0; }
16   </style>
17  </head>
18  <body>
19   <div class="a">
20    <div class="c">
21     Switch to projection or print mode and switch to the second page/slide.
22    </div>
23   </div>
24   <div class="b">
25    <div>
26     This should be at the top of the second and last page.
27    </div>
28   </div>
29 </body>
30 </html>