multicol-rule-001.xht (1642B)
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 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="multicol-rule-001-ref.xht" /> 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 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 div 14 { 15 background-color: red; 16 color: green; 17 font: 1.25em/1 Ahem; 18 margin-bottom: 0.5em; 19 width: 20em; 20 } 21 22 div#test 23 { 24 columns: 2; 25 column-gap: 0em; 26 column-rule: green solid 20em; 27 28 /* 29 30 N == 2; 31 32 W == 200px; 33 34 */ 35 36 orphans: 1; 37 widows: 1; 38 } 39 ]]></style> 40 </head> 41 <body> 42 43 <p>Test passes if there are 2 green bars and <strong>no red</strong>.</p> 44 45 <div id="test">1<br />2</div> 46 47 <div id="reference">12345678901234567890</div> 48 49 </body> 50 </html>