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: wide column-rule-width painted above background-color</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-14 -->
7 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crw" title="4.4. 'column-rule-width'">
8 <link rel="match" href="reference/multicol-rule-fraction-002-ref.htm">
9 <meta name="flags" content="ahem">
10 <meta name="assert" content="This test checks that if a column rule is wider than its gap, then the column rule will overlap adjacent column boxes above the background of the multi-column element but below the inline content inside the multicol element. In this test, the blue column-rule is painted above the yellow background-color but below (under) the black Ahem glyphs.">
11 <style type="text/css">
12 div
13 {
14 background-color: yellow;
15 border: gray solid 1em;
16 color: black;
17 font: 1.25em/1 Ahem;
18 orphans: 1;
19 widows: 1;
20 width: 14em;
21
22 column-count: 4;
23 column-gap: 1em;
24 column-rule-color: blue;
25 column-rule-style: solid;
26 column-rule-width: 1.9em;
27 }
28
29 /*
30
31 N == 4;
32
33 W == max(0, (available-width - ((N - 1) * column-gap)) / N);
34 W == max(0, (14em - ((4 - 1) * 1em)) / 4);
35 W == max(0, (14em - (3 * 1em)) / 4);
36 W == max(0, (14em - (3em)) / 4);
37 W == max(0, (11em) / 4);
38 W == max(0, 2.75em);
39 W == 2.75em;
40
41 */
42 </style>
43 </head>
44
45 <body>
46
47 <div>
48 1s cl
49 2n cl
50 3r cl
51 4t cl
52 </div>
53
54 </body>
55 </html>