multicol-collapsing-001.xht (1448B)
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: no margin collapsing with its first child block box</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-25 --> 7 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" /> 8 <link rel="match" href="multicol-collapsing-001-ref.xht"/> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="This test checks that the top margin of the first child block box of a multicol element does not collapse with the margin top of such multicol element." /> 11 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 12 <style type="text/css"><![CDATA[ 13 body > div 14 { 15 background-color: black; 16 border: black solid 1px; 17 font: 1.25em/1 Ahem; 18 width: 10em; 19 } 20 21 div > div 22 { 23 background-color: yellow; 24 color: black; 25 margin: 1em; 26 width: 8em; 27 orphans: 1; 28 widows: 1; 29 30 column-count: 3; 31 column-gap: 1em; 32 } 33 34 h4 35 { 36 font: inherit; 37 margin: 1em 0 0; 38 } 39 ]]></style> 40 </head> 41 <body> 42 <div> 43 <div> 44 <h4>ab cd</h4> 45 ef gh 46 ij kl 47 mn oq 48 </div> 49 </div> 50 </body> 51 </html>