multicol-break-001.xht (1648B)
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: break-before: column (basic)</title> 5 <link rel="author" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2013-09-14 --> 6 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#break-before-break-after-break-inside" title="5.1. 'break-before', 'break-after', 'break-inside'" /> 7 <link rel="match" href="multicol-break-001-ref.xht" /> 8 <meta name="flags" content="ahem image" /> 9 <meta name="assert" content="This test checks that basic support of 'break-before: column'." /> 10 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 11 <style type="text/css"><![CDATA[ 12 div#test, div#reference 13 { 14 background-color: yellow; 15 margin-bottom: 0.5em; 16 font: 1.25em/1 Ahem; 17 height: 3em; 18 width: 10em; 19 } 20 21 div#test 22 { 23 column-fill: auto; 24 column-gap: 0; 25 column-width: 2em; 26 27 /* 28 29 N == 5; 30 31 W == 2em; 32 33 */ 34 } 35 36 div#test > div {break-before: column;} 37 38 img {vertical-align: top;} 39 ]]></style> 40 </head> 41 <body> 42 43 <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p> 44 45 <div id="test"> 46 <div>A</div> 47 <div>B</div> 48 <div>C</div> 49 </div> 50 51 <div id="reference"><img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /> <img src="support/black20x20.png" alt="Image download support must be enabled" /></div> 52 53 </body> 54 </html>