multicol-rule-fraction-001.xht (1526B)
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</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="multicol-rule-fraction-001-ref.xht" /> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="Basic test for the column-rule-width property, checking that values above 0 but below 1 are allowed." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 div 14 { 15 background-color: yellow; 16 border: gray solid 1em; 17 color: black; 18 font: 1.25em/1 Ahem; 19 orphans: 1; 20 widows: 1; 21 width: 14em; 22 23 column-count: 4; 24 column-gap: 1em; 25 column-rule-color: blue; 26 column-rule-style: solid; 27 column-rule-width: 0.9em; 28 } 29 30 /* 31 32 N == 4; 33 34 W == max(0, (available-width - ((N - 1) * column-gap)) / N); 35 W == max(0, (14em - ((4 - 1) * 1em)) / 4); 36 W == max(0, (14em - (3 * 1em)) / 4); 37 W == max(0, (14em - (3em)) / 4); 38 W == max(0, (11em) / 4); 39 W == max(0, 2.75em); 40 W == 2.75em; 41 42 */ 43 ]]></style> 44 </head> 45 46 <body> 47 48 <div> 49 1s cl 50 2n cl 51 3r cl 52 4t cl 53 </div> 54 55 </body> 56 </html>