multicol-fill-000

column-fill: balance (basic)

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem
Assertion
This test checks that content is balanced into all columns thanks to 'column-fill: balance'.

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: column-fill: balance (basic)</title>
 5   <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com">
 6   <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2013-08-25 -->
 7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cf" title="7.1 'column-fill'">
 8   <link rel="match" href="reference/multicol-fill-000-ref.htm">
 9   <meta name="flags" content="ahem">
10   <meta name="assert" content="This test checks that content is balanced into all columns thanks to 'column-fill: balance'.">
11   <style type="text/css">
12   div.test, table#reference
13   {
14   background-color: yellow;
15   color: lime;
16   margin: 1em 0em;
17   font: 1.25em/1 Ahem;
18   width: 18em;
19   }
20 
21   div.test
22   {
23   columns: 3;
24   column-fill: balance;
25   column-gap: 0em;
26 
27   /*
28 
29   N == 3;
30 
31   W == 6em;
32 
33   */
34 
35   orphans: 1;
36   widows: 1;
37   }
38 
39   div.test > p {margin: 0em;}
40 
41   table
42   {
43   border-spacing: 0em;
44   table-layout: fixed;
45   }
46 
47   td {padding: 0em;}
48   </style>
49  </head>
50  <body>
51 
52   <p>Test passes if the 3 horizontal bars are <strong>identical</strong>.</p>
53 
54   <div class="test">
55       <p>A</p>
56       <p>B</p>
57       <p>C</p>
58   </div>
59 
60   <div class="test">D<br>E<br>F</div>
61 
62   <table id="reference">
63     <tr>
64       <td>G</td>
65       <td>H</td>
66       <td>I</td>
67     </tr>
68   </table>
69 
70  </body>
71 </html>