1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
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="reference/multicol-containing-002-ref.htm">
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 <style type="text/css">
11 div
12 {
13 background-color: white;
14 color: green;
15 font: 1.25em/1 Ahem;
16 position: relative;
17 width: 19em;
18
19 column-count: 4;
20 column-gap: 1em;
21 }
22
23 span {color: red;}
24
25 img#white-overlapping
26 {
27 left: 11em;
28 position: absolute;
29 top: 1em;
30 }
31 </style>
32 </head>
33 <body>
34
35 <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>
36
37 </body>
38 </html>