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' shorthand</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-15 -->
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-samelength-001-ref.htm">
9 <meta name="flags" content="ahem invalid">
10 <style type="text/css">
11 body {margin: 8px;}
12
13 p
14 {
15 line-height: 1.25em;
16 margin: 1em 0em;
17 }
18
19 strong {line-height: 1;}
20
21 div#red-overlapped-reference
22 {
23 background-color: red;
24 height: 100px;
25 width: 100px;
26 }
27
28 div#test-overlapping-green
29 {
30 bottom: 100px;
31 color: transparent;
32 font: 1.25em/1 Ahem; /* equivalent to 20px/1 Ahem */
33 position: relative;
34 right: 40px;
35 width: 9em;
36
37 column-count: 2;
38 column-gap: 5em;
39 column-rule: green solid 5em;
40 column-rule: normal red 5em;
41 column-rule: normal 5em red;
42 column-rule: red normal 5em;
43 column-rule: red 5em normal;
44 column-rule: 5em normal red;
45 column-rule: 5em red normal;
46 column-rule: red 5em red solid;
47 column-rule: red 5em solid red;
48 column-rule: red solid 5em red;
49 column-rule: red solid red 5em;
50 column-rule: 5em red solid red;
51 column-rule: solid red 5em red;
52 }
53 </style>
54 </head>
55
56 <body>
57
58 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
59
60 <div id="red-overlapped-reference"></div>
61
62 <div id="test-overlapping-green">Le ft Co lu mn Ri gh Co lu mn</div>
63
64 <!--
65
66 Expected results
67 column-gap
68 column-rule
69 v=====v
70 *************
71 |Le| |Ri|
72 |ft| |gh|
73 |Co| |Co|
74 |lu| |lu|
75 |mn| |mn|
76 *************
77
78 -->
79
80 </body>
81 </html>