multicol-span-all-margin-001.xht (1904B)
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 and width exceeding available multi-column 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-18 --> 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-001-ref.xht" /> 9 <meta name="flags" content="ahem may" /> 10 <meta name="assert" content="This test checks that when 'overflow' is set to 'hidden' on a multi-column element, then any spanning ('column-span: all') element exceeding the available width of the multi-column should be clipped accordingly." /> 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 overflow: hidden; 21 widows: 1; 22 width: 8em; 23 24 column-count: 4; 25 column-gap: 0em; 26 27 /* 28 29 N == 4; 30 31 W == 2; 32 33 */ 34 } 35 36 h4 37 { 38 background: black; 39 color: black; 40 font: inherit; 41 margin: 1em 0; 42 width: 11em; 43 44 column-span: all; 45 46 /* 47 This is the target of the test: the spanning element's 48 width (11em) exceeds the available width of the 49 multi-column element. The 3em exceeding such 50 width is first clipped at column box boundary. 51 */ 52 } 53 54 span {color: blue;} 55 56 span + span {color: pink;} 57 ]]></style> 58 </head> 59 60 <body> 61 62 <div> 63 <span> bl ue bl ue </span> 64 <span> Pi nk Pi nk </span> 65 <h4> black </h4> 66 <h4> black </h4> 67 na vy na vy 68 na vy na vy 69 </div> 70 71 </body> 72 </html>