multicol-inherit-001

multicolumn and inheritance

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem

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: multicolumn and inheritance</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-08 -->
 7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm">
 8   <link rel="match" href="reference/multicol-inherit-001-ref.htm">
 9   <meta name="flags" content="ahem">
10   <style type="text/css">
11   body
12   {
13   font: 1.25em/1 Ahem;
14   width: 34em;
15   }
16 
17   body > div
18   {
19   column-count: 3;
20   column-gap: 1em;
21 
22   /*
23   N == 3;
24 
25     34em : available width
26   -  2em : horizontal margin of external div
27   -  2em : 2 column gaps
28  ==========
29     30em
30 
31   So, W == 10em;
32 
33     30em
34   -  6em : 3 mult by 2em: horizontal margin of 3 internal divs
35  ==========
36     24em : 8em for each of the 3 column boxes without their horizontal margins
37 
38   */
39   }
40 
41   div
42   {
43   background-color: yellow;
44   color: black;
45   margin: 0 1em 1em;
46   orphans: 1;
47   widows: 1;
48   }
49   </style>
50  </head>
51  <body>
52 
53   <div>
54 	<div>
55 		aa aa
56 		aa aa
57 		aa aa
58 		aa aa
59 	</div>
60 	<div>
61 		mm mm
62 		mm mm
63 		mm mm
64 		mm mm
65 	</div>
66 	<div>
67 		xx xx
68 		xx xx
69 		xx xx
70 		xx xx
71 	</div>
72   </div>
73 
74  </body>
75 </html>