multicol-count-computed-004.xht (1588B)
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: both 'column-width' and 'column-count' are 'auto'</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-07-29 --> 7 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#pseudo-algorithm" title="3.4 Pseudo-algorithm" /> 8 <link rel="match" href="multicol-count-computed-004-ref.xht" /> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="This test checks that if 'column-width' is 'auto' and if 'column-count' is 'auto', then such element will not behave like a multi-column element and column-gap and column-rule declarations will be ignored." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 div 14 { 15 background: yellow; 16 border: gray solid 1em; 17 color: black; 18 font: 1.25em/1 Ahem; 19 orphans: 1; 20 widows: 1; 21 width: 12em; 22 23 column-count: auto; 24 column-gap: 7em; 25 column-rule-color: red; 26 column-rule-width: 1.5em; 27 column-rule-style: solid; 28 } 29 30 #pink {color: pink;} 31 #orange {color: orange;} 32 #purple {color: purple;} 33 #gray {color: gray;} 34 ]]></style> 35 </head> 36 37 <body> 38 39 <div> 40 <span id="pink">Pink</span> 41 <span id="orange">oran</span> 42 <span id="purple">PurP</span> 43 <span id="gray">gray</span> 44 </div> 45 46 </body> 47 </html>