multicol-fill-balance-001.xht (1183B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <title>multicolumn | column-fill</title> 6 <meta name="assert" content="This test checks that columns are properly balanced when 'column-fill: balance' is set"/> 7 <link rel="author" title="howcome@opera.com" href="http://www.opera.com/"/> 8 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#filling-columns"/> 9 <link rel="match" href="multicol-fill-balance-001-ref.xht"/> 10 <meta name="flags" content="ahem"/> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 body>div { 14 font-family: Ahem; 15 font-size: 1.25em; 16 line-height: 1em; 17 color: green; 18 height: 3em; 19 width: 2em; 20 orphans: 1; 21 widows: 1; 22 position: relative; 23 margin: 1em; 24 } 25 div.col { 26 column-count: 2; 27 column-fill: balance; 28 column-gap: 0; 29 } 30 div.red { 31 background: red; position: absolute; z-index: -1; 32 } 33 ]]></style> 34 </head> 35 36 <body> 37 38 <div class='col'> 39 <div class='red' style="top: 0; left: 0; height: 2em; width: 2em;"></div> 40 o<br/>t<br/> 41 o<br/>t<br/> 42 </div> 43 44 <div class='ref'> 45 oo<br/>tt 46 </div> 47 48 </body> 49 </html>