multicol-span-float-003.html (1308B)
1 <!DOCTYPE html> 2 <html> 3 <meta charset="utf-8"> 4 <title>CSS Multi-column Layout Test: Test floats in a multi-column container with column-span</title> 5 <link rel="author" title="Ting-Yu Lin" href="mailto:tlin@mozilla.com"> 6 <link rel="author" title="Mozilla" href="http://www.mozilla.org/"> 7 <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#the-multi-column-model"> 8 <link rel="help" href="https://drafts.csswg.org/css-multicol-1/#column-span"> 9 <link rel="stylesheet" href="/fonts/ahem.css"> 10 <link rel="match" href="multicol-span-float-002-ref.html"> 11 <meta name="assert" content="This test verifies the floats, which are inside the mulitcol layout with column-span, are positioned with regard to the column box where the float appears."> 12 13 <style> 14 article { 15 column-count: 1; 16 width: 300px; 17 font: 1.25em/1 Ahem; 18 } 19 .float-left { 20 float: left; 21 color: black; 22 } 23 .float-right { 24 float: right; 25 color: navy; 26 } 27 .column-span { 28 column-span: all; 29 color: pink; 30 } 31 </style> 32 33 <article> 34 <span> 35 <div class="float-left">black</div> 36 <div class="float-right">navyy</div> 37 38 <div class="column-span">Pink</div> 39 40 <div class="float-left">black</div> 41 <div class="float-right">navyy</div> 42 </span> 43 </article> 44 </html>