Fri, 16 Jan 2015 18:13:44 +0100
Integrate suggestion from review to improve consistency with existing code.
michael@0 | 1 | <!DOCTYPE HTML> |
michael@0 | 2 | <html><head> |
michael@0 | 3 | <title>CSS Test: Balancing Overflow, page-break-inside:avoid</title> |
michael@0 | 4 | <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=685012"> |
michael@0 | 5 | <link rel="help" href="http://www.w3.org/TR/CSS21/page.html#propdef-page-break-inside"> |
michael@0 | 6 | <meta name="flags" content="paged"> |
michael@0 | 7 | <meta charset="utf-8"> |
michael@0 | 8 | <style type="text/css"> |
michael@0 | 9 | @page { size:5in 3in; margin:0.5in; } |
michael@0 | 10 | |
michael@0 | 11 | html,body { |
michael@0 | 12 | color:black; background-color:white; font-size:16px; padding:0; margin:0; |
michael@0 | 13 | } |
michael@0 | 14 | |
michael@0 | 15 | .colset { |
michael@0 | 16 | -moz-column-count: 3; |
michael@0 | 17 | -moz-column-gap: 0; |
michael@0 | 18 | border: solid silver; |
michael@0 | 19 | width: 9em; |
michael@0 | 20 | } |
michael@0 | 21 | p { margin: 0; page-break-inside:avoid; } |
michael@0 | 22 | .short { height: 5px; page-break-inside:avoid; } |
michael@0 | 23 | .short p { page-break-inside:auto; } |
michael@0 | 24 | |
michael@0 | 25 | </style> |
michael@0 | 26 | </head> |
michael@0 | 27 | <body> |
michael@0 | 28 | |
michael@0 | 29 | <div class="colset"> |
michael@0 | 30 | <p>one</p> |
michael@0 | 31 | <p>two three</p> |
michael@0 | 32 | <p>four five</p> |
michael@0 | 33 | </div> |
michael@0 | 34 | |
michael@0 | 35 | <div class="colset"> |
michael@0 | 36 | <p>one two three four five</p> |
michael@0 | 37 | </div> |
michael@0 | 38 | |
michael@0 | 39 | <div class="colset"> |
michael@0 | 40 | <p>one two</p> |
michael@0 | 41 | <p>three four five</p> |
michael@0 | 42 | </div> |
michael@0 | 43 | |
michael@0 | 44 | <div class="colset"> |
michael@0 | 45 | <div class="short"><p>one two three four five</p></div> |
michael@0 | 46 | </div> |
michael@0 | 47 | |
michael@0 | 48 | </body> |
michael@0 | 49 | </html> |