multicol-fill-000.xht (1617B)
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-fill: balance (basic)</title> 5 <link rel="author" title="Hakon Wium Lie" href="mailto:howcome@opera.com" /> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-08-25 --> 7 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#cf" title="7.1 'column-fill'" /> 8 <link rel="match" href="multicol-fill-000-ref.xht" /> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="This test checks that content is balanced into all columns thanks to 'column-fill: balance'." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 div.test, table#reference 14 { 15 background-color: yellow; 16 color: lime; 17 margin: 1em 0em; 18 font: 1.25em/1 Ahem; 19 width: 18em; 20 } 21 22 div.test 23 { 24 columns: 3; 25 column-fill: balance; 26 column-gap: 0em; 27 28 /* 29 30 N == 3; 31 32 W == 6em; 33 34 */ 35 36 orphans: 1; 37 widows: 1; 38 } 39 40 div.test > p {margin: 0em;} 41 42 table 43 { 44 border-spacing: 0em; 45 table-layout: fixed; 46 } 47 48 td {padding: 0em;} 49 ]]></style> 50 </head> 51 <body> 52 53 <p>Test passes if the 3 horizontal bars are <strong>identical</strong>.</p> 54 55 <div class="test"> 56 <p>A</p> 57 <p>B</p> 58 <p>C</p> 59 </div> 60 61 <div class="test">D<br />E<br />F</div> 62 63 <table id="reference"> 64 <tr> 65 <td>G</td> 66 <td>H</td> 67 <td>I</td> 68 </tr> 69 </table> 70 71 </body> 72 </html>