multicol-span-all-margin-bottom-001.xht (2058B)
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: all' element with vertical margins and width exceeding available multi-colum width (complex)</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-19 --> 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-margin-bottom-001-ref.xht" /> 9 <meta name="flags" content="ahem" /> 10 <meta name="assert" content="In this test, the glyphs 'or' are painted into 1st column box, the glyphs 'ang' extend outside the box, and should not be clipped. In this test they are overwritten by spans so are not visible." /> 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: 8em; 22 23 column-count: 4; 24 column-gap: 0em; 25 26 /* 27 28 N == 4; 29 30 W == 2em; 31 32 */ 33 } 34 35 h4 36 { 37 font: inherit; 38 margin: 1em 0; 39 } 40 41 h4#black 42 { 43 background: black; 44 color: black; 45 46 column-span: all; 47 } 48 49 h4#orange 50 { 51 background: orange; 52 color: orange; 53 /* 54 In this test, the glyphs "or" are painted into 1st column box. 55 Per spec, content in the normal flow that extends into column 56 gaps (e.g., long words or images) is not clipped to the column 57 box. However, the glyphs "ang" are overwritten by <span>s, so 58 they're not visible. 59 */ 60 } 61 62 span {color: blue;} 63 64 span + span {color: pink;} 65 ]]></style> 66 </head> 67 68 <body> 69 70 <div> 71 na vy na vy 72 na vy na vy 73 <h4 id="black"> black </h4> 74 <h4 id="orange"> orang </h4> 75 <span> bl ue bl ue </span> 76 <span> Pi nk Pi nk </span> 77 </div> 78 79 </body> 80 </html>