multicol-span-all-001.xht (1554B)
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' element (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-16 --> 7 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-span" title="6.1. 'column-span'" /> 8 <link rel="match" href="multicol-span-all-001-ref.xht" /> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="Tests that the h4 set to 'column-span: all' spans across all columns resulting in a black bar across the multicol container." /> 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 border: gray solid 1em; 17 color: navy; 18 font: 1.25em/1 Ahem; 19 orphans: 1; 20 widows: 1; 21 width: 11em; 22 23 column-count: 4; 24 column-gap: 1em; 25 26 /* 27 28 N == 4; 29 30 W == 2em; 31 32 */ 33 34 } 35 36 span {color: blue;} 37 38 span + span {color: pink;} 39 40 h4 41 { 42 background-color: black; 43 color: black; 44 font: inherit; 45 margin: 0; 46 47 column-span: all; 48 } 49 ]]></style> 50 </head> 51 52 <body> 53 54 <div> 55 <span id="top-first-and-second-columns"> bl ue bl ue </span> 56 <span id="top-third-and-fourth-columns"> Pi nk Pi nk </span> 57 <h4> sPana </h4> 58 ab cd ef gh 59 ij kl mn oq 60 </div> 61 62 </body> 63 </html>