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: floating a column-spanning element</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-22 -->
7 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-span" title="6.1. 'column-span'">
8 <link rel="match" href="reference/multicol-span-float-001-ref.htm">
9 <meta name="flags" content="ahem">
10 <meta name="assert" content="This test checks that 'column-span' does not apply to floating element.">
11 <style type="text/css">
12 div
13 {
14 background-color: yellow;
15 border: gray solid 1em;
16 color: navy;
17 font: 1.25em/1 Ahem;
18 margin-left: 5em;
19 orphans: 1;
20 widows: 1;
21 width: 11em;
22
23 column-count: 2;
24 column-gap: 1em;
25
26 /*
27
28 N == 2;
29
30 W == 5em;
31
32 */
33 }
34
35 span
36 {
37 display: block;
38 font: inherit;
39 margin: 0;
40 width: 11em;
41
42 column-span: all;
43 }
44
45 span:first-child
46 {
47 background-color: pink;
48 color: pink;
49 float: right;
50 }
51
52 span + span {color: black;}
53 </style>
54 </head>
55 <body>
56
57 <div>
58 <span>Pinkk</span>
59 <span>black</span>
60 navyy navyy
61 </div>
62
63 </body>
64 </html>