multicol-rule-samelength-001.xht (1853B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Multi-column Layout Test: 'column-rule-width' has same length as 'column-gap'</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="multicol-rule-samelength-001-ref.xht" /> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="Test that a gap of 5em and a column-rule-width of 5em both take up the same space." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 body {margin: 8px;} 14 15 p 16 { 17 line-height: 1.25em; 18 margin: 1em 0em; 19 } 20 21 strong {line-height: 1;} 22 23 div#red-overlapped-reference 24 { 25 background-color: red; 26 height: 100px; 27 width: 100px; 28 } 29 30 div#test-overlapping-green 31 { 32 bottom: 100px; 33 color: transparent; 34 font: 1.25em/1 Ahem; /* equivalent to 20px/1 Ahem */ 35 position: relative; 36 right: 40px; 37 width: 9em; 38 39 column-count: 2; 40 column-gap: 5em; 41 column-rule-color: green; 42 column-rule-style: solid; 43 column-rule-width: 5em; 44 } 45 ]]></style> 46 </head> 47 48 <body> 49 50 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 51 52 <div id="red-overlapped-reference"></div> 53 54 <div id="test-overlapping-green">Le ft Co lu mn Ri gh Co lu mn</div> 55 56 <!-- 57 58 Expected results 59 column-gap 60 column-rule 61 v=====v 62 ************* 63 |Le| |Ri| 64 |ft| |gh| 65 |Co| |Co| 66 |lu| |lu| 67 |mn| |mn| 68 ************* 69 70 --> 71 72 </body> 73 </html>