multicol-margin-child-001

multi-column and margin collapsing of block children (basic)

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem
Assertion
This test checks that the margin-bottom of a block child in a multi-column element will collapse with the margin-top of a following block child of that same multi-colum element if those children are vertically adjacent and if no line boxes, no clearance, no padding and no border separate them.

Source

 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 Multi-column Layout Test: multi-column and margin collapsing of block children (basic)</title>
 5   <link rel="author" title="Opera Software ASA" href="http://www.opera.com/">
 6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2013-08-10 -->
 7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model">
 8   <link rel="match" href="reference/multicol-margin-child-001-ref.htm">
 9   <meta name="flags" content="ahem">
10   <meta name="assert" content="This test checks that the margin-bottom of a block child in a multi-column element will collapse with the margin-top of a following block child of that same multi-colum element if those children are vertically adjacent and if no line boxes, no clearance, no padding and no border separate them.">
11   <style type="text/css">
12   div
13   {
14   background-color: yellow;
15   border: gray solid 1em;
16   color: blue;
17   font: 1.25em/1 Ahem;
18   width: 10em;
19 
20   column-count: 2;
21   column-fill: balance;
22   column-gap: 0em;
23   }
24 
25   h4
26   {
27   font: inherit;
28   margin: 1em 0;
29   }
30   </style>
31 
32  </head>
33 
34  <body>
35 
36   <div>
37 	1scol 1scol
38 	1scol
39   <h4>	h4h41	</h4>
40   <h4>	h4h42	</h4>
41 	2ncol 2ncol
42 	2ncol 2ncol
43 	2ncol 2ncol
44 	2ncol 2ncol
45   </div>
46 
47  </body>
48 </html>