multicol-height-001

column-count and height

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem
Assertion
This test checks that length of column rules is equal to the length of the columns and if a nth column box overflows outside the available width of a multi-column element, then an (n-1)th column rule should be drawn. In this test, a 3rd column box is created outside the content edge of the multi-column element: therefore, a 2nd blue column rule should be drawn accordingly.

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-count and height</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-06 -->
 7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-gap" title="4.1. 'column-gap'">
 8   <link rel="match" href="reference/multicol-height-001-ref.htm">
 9   <meta name="flags" content="ahem">
10   <meta name="assert" content="This test checks that length of column rules is equal to the length of the columns and if a nth column box overflows outside the available width of a multi-column element, then an (n-1)th column rule should be drawn. In this test, a 3rd column box is created outside the content edge of the multi-column element: therefore, a 2nd blue column rule should be drawn accordingly.">
11   <style type="text/css">
12   div
13   {
14   color: white;
15   font: 1.25em/1 Ahem;
16   height: 8em;
17   width: 14em;
18 
19   column-count: 2;
20   column-fill: auto;
21   column-gap: 2em;
22   column-rule: blue solid 10px;
23   }
24   </style>
25  </head>
26  <body>
27   <p>Test passes if there are 2 blue vertical stripes of equal height.</p>
28 
29   <div>
30   1st col 1st col 1st col
31   1st col 2nd col 2nd col
32   2nd col 2nd col 3rd col
33   3rd col 3rd col 3rd col
34   </div>
35  </body>
36 </html>