multicol-br-inside-avoidcolumn-001.xht (938B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 <head> 5 <title>multicol | break-inside: avoid-column</title> 6 <link rel="author" title="Opera Software ASA" href="http://www.opera.com/"/> 7 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-breaks"/> 8 <link rel="match" href="../reference/ref-filled-green-200px-square.html"/> 9 <style type="text/css"><![CDATA[ 10 .multicol { 11 column-count: 2; 12 column-gap: 0; 13 column-fill: auto; 14 overflow: hidden; 15 width: 200px; 16 height: 300px; 17 } 18 .multicol > div { 19 height: 200px; 20 break-inside: avoid-column; 21 background: green; 22 } 23 .multicol > div.red { 24 background:red; 25 } 26 ]]></style> 27 </head> 28 <body> 29 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 30 <div class="multicol"> 31 <div></div> 32 <div></div> 33 <div class="red"></div> 34 </div> 35 </body> 36 </html>