multicol-break-001

break-before: column (basic)

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem, image
Assertion
This test checks that basic support of 'break-before: column'.

Source

 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: 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="reference/multicol-break-001-ref.htm">
 8   <meta name="flags" content="ahem image">
 9   <meta name="assert" content="This test checks that basic support of 'break-before: column'.">
10   <style type="text/css">
11   div#test, div#reference
12   {
13   background-color: yellow;
14   margin-bottom: 0.5em;
15   font: 1.25em/1 Ahem;
16   height: 3em;
17   width: 10em;
18   }
19 
20   div#test
21   {
22   column-fill: auto;
23   column-gap: 0;
24   column-width: 2em;
25 
26   /*
27 
28   N == 5;
29 
30   W == 2em;
31 
32   */
33   }
34 
35   div#test > div {break-before: column;}
36 
37   img {vertical-align: top;}
38   </style>
39  </head>
40  <body>
41 
42   <p>Test passes if the 2 horizontal bars are <strong>identical</strong>.</p>
43 
44   <div id="test">
45       <div>A</div>
46       <div>B</div>
47       <div>C</div>
48   </div>
49 
50   <div id="reference">&nbsp; <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>
51 
52  </body>
53 </html>