multicol-rule-001

column-rule exceeding column-gap

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem
Assertion
If a column rule is wider than its gap, then the adjacent column boxes overlap the rule. This test checks that if inline content of column boxes uses only 1 twentieth (1/20) of each of the adjacent column box width, then the column rule must shine through 19 twentieths (19/20) of each of the adjacent column boxes (and above their respective backgrounds).

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-rule exceeding column-gap</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-27 -->
 7   <link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-gaps-and-rules" title="4. Column gaps and rules">
 8   <link rel="match" href="reference/multicol-rule-001-ref.htm">
 9   <meta name="flags" content="ahem">
10   <meta name="assert" content="If a column rule is wider than its gap, then the adjacent column boxes overlap the rule. This test checks that if inline content of column boxes uses only 1 twentieth (1/20) of each of the adjacent column box width, then the column rule must shine through 19 twentieths (19/20) of each of the adjacent column boxes (and above their respective backgrounds).">
11   <style type="text/css">
12   div
13   {
14   background-color: red;
15   color: green;
16   font: 1.25em/1 Ahem;
17   margin-bottom: 0.5em;
18   width: 20em;
19   }
20 
21   div#test
22   {
23   columns: 2;
24   column-gap: 0em;
25   column-rule: green solid 20em;
26 
27   /*
28 
29   N == 2;
30 
31   W == 200px;
32 
33   */
34 
35   orphans: 1;
36   widows: 1;
37   }
38   </style>
39  </head>
40  <body>
41 
42   <p>Test passes if there are 2 green bars and <strong>no red</strong>.</p>
43 
44   <div id="test">1<br>2</div>
45 
46   <div id="reference">12345678901234567890</div>
47 
48  </body>
49 </html>