multicol-span-000.xht (2140B)
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-span (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-27 --> 7 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-rule" title="4.5 'column-rule'" /> 8 <link rel="match" href="multicol-span-000-ref.xht" /> 9 <meta name="flags" content="ahem image" /> 10 <meta name="assert" content="Tests that the element with an id of 'column-span' spans across all columns." /> 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 color: lime; 17 font: 1.25em/1 Ahem; 18 orphans: 1; 19 widows: 1; 20 width: 10em; 21 } 22 23 div#test, div.test2 24 { 25 columns: 2; 26 column-fill: balance; 27 column-gap: 0em; 28 29 /* 30 31 N == 2; 32 33 W == 5em; 34 35 */ 36 } 37 38 div#test, div#reference {margin-bottom: 0.5em;} 39 40 div#column-span 41 { 42 column-span: all; 43 font: inherit; 44 } 45 46 img 47 { 48 padding-right: 4em; 49 vertical-align: top; 50 } 51 ]]></style> 52 </head> 53 <body> 54 55 <p>Test passes if the 3 rectangles are <strong>identical</strong>.</p> 56 57 <div id="test">A<br />B<div id="column-span">123456</div>C<br />D</div> 58 59 <div id="reference"><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><br /><img src="support/swatch-lime.png" width="120" height="20" alt="Image download support must be enabled" /><br /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /><img src="support/swatch-lime.png" width="20" height="20" alt="Image download support must be enabled" /></div> 60 61 <div class="test2">A<br />B</div> 62 <div>123456</div> 63 <div class="test2">C<br />D</div> 64 65 </body> 66 </html>