multicol-rule-large-001.xht (2005B)
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: excessively wide column-rule-width</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-09-03 --> 7 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#crw" title="4.4. 'column-rule-width'" /> 8 <link rel="bookmark" href="http://lists.w3.org/Archives/Public/www-style/2013Sep/0006.html" title="[css3-multicol] z-order of column-rule: below or above border?" /> 9 <link rel="match" href="multicol-rule-large-001-ref.xht" /> 10 <meta name="flags" content="ahem" /> 11 <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; its painting will be above background of multi-column element but below the inline content inside the multicol element." /> 12 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 13 <style type="text/css"><![CDATA[ 14 body 15 { 16 font: 1.25em/1 Ahem; 17 margin-left: 1em; 18 } 19 20 div 21 { 22 background-color: red; 23 border: gray solid 1em; 24 color: lime; 25 font-size: 1em; 26 orphans: 1; 27 widows: 1; 28 width: 15em; 29 30 column-count: 4; 31 column-gap: 1em; 32 column-rule-color: blue; 33 column-rule-style: solid; 34 column-rule-width: 17em; 35 } 36 37 /* 38 39 N == 4; 40 41 W == max(0, (available-width - ((N - 1) * column-gap)) / N); 42 W == max(0, (15em - ((4 - 1) * 1em)) / 4); 43 W == max(0, (15em - (3 * 1em)) / 4); 44 W == max(0, (15em - (3em)) / 4); 45 W == max(0, (12em) / 4); 46 W == max(0, 3em); 47 W == 3em; 48 49 */ 50 51 /* 52 Since column rules do not take up space, then the test 53 should not generate an horizontal scrollbar. 54 */ 55 ]]></style> 56 </head> 57 58 <body> 59 60 <div> 61 1s cl 62 2n cl 63 3r cl 64 4t cl 65 </div> 66 67 </body> 68 </html>