multicol-containing-002.xht (1676B)
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: a multi-column can act as containing block for elements with 'position: absolute'</title> 5 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> 6 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-multi-column-model" title="2. The multi-column model" /> 7 <link rel="match" href="multicol-containing-002-ref.xht" /> 8 <meta name="flags" content="ahem" /> 9 <meta name="assert" content="This test checks that a multi-column element can establish containing block for elements with 'position: absolute'." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"><![CDATA[ 12 div 13 { 14 background-color: white; 15 color: green; 16 font: 1.25em/1 Ahem; 17 position: relative; 18 width: 19em; 19 20 column-count: 4; 21 column-gap: 1em; 22 } 23 24 span {color: red;} 25 26 img#white-overlapping 27 { 28 left: 11em; 29 position: absolute; 30 top: 1em; 31 } 32 ]]></style> 33 </head> 34 <body> 35 36 <div>4444 1 1 1 1 4444 1 1 1 4444 1 1 1 1 4444 1 1 1 1 1 1 4444 1<span>RED</span> 1<span>RED</span> 4444 1 1 4444 4444 1 1 4444 1 1 4444 <img id="white-overlapping" src="support/swatch-white.png" width="60" height="40" alt="Image download support must be enabled" /></div> 37 38 </body> 39 </html>