multicol-width-002.xht (1298B)
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-width (basic)</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-23 --> 7 <link rel="help" href="https://www.w3.org/TR/css-multicol-1/#the-number-and-width-of-columns" title="The number and width of columns" /> 8 <link rel="match" href="multicol-width-002-ref.xht" /> 9 <meta name="assert" content="Tests that column-width is calculated correctly."/> 10 <meta name="flags" content="ahem" /> 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 width: 12em; 20 21 column-gap: 0; 22 column-width: 6em; 23 } 24 25 span {color: blue;} 26 ]]></style> 27 </head> 28 <body> 29 <p>Test passes if there are two black bars and two blue bars with a yellow stripe to the right of each bar, matching reference.</p> 30 <div> 31 bl ac bl ac 32 <span> 33 bl ue bl ue 34 </span> 35 </div> 36 </body> 37 </html>