multicol-width-003.xht (1653B)
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-multi-column-model" title="The Multi-column Model" /> 8 <link rel="match" href="multicol-width-002-ref.xht" /> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="Test to check that the multicol container and not the column box becomes the containing box"/> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 div#multi-column 14 { 15 background-color: yellow; 16 border: gray solid 1em; 17 color: black; 18 font: 1.25em/1 Ahem; 19 height: 2em; 20 position: relative; 21 width: 12em; 22 column-width: 6em; 23 column-gap: 0; 24 } 25 26 div > div 27 { 28 background-color: black; 29 height: 2em; 30 position: absolute; 31 top: 0; 32 width: 2em; 33 } 34 35 div#s2 {right: 7em;} 36 37 div#s3 38 { 39 background-color: blue; 40 right: 4em; 41 } 42 43 div#s4 44 { 45 background-color: blue; 46 right: 1em; 47 } 48 ]]></style> 49 </head> 50 <body> 51 <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> 52 <div id="multi-column"> 53 <div></div> 54 <div id="s2"></div> 55 <div id="s3"></div> 56 <div id="s4"></div> 57 </div> 58 59 </body> 60 </html>