multicol-br-inside-avoidcolumn-001

multicol | break-inside: avoid-column

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

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>multicol | break-inside: avoid-column</title>
 5 <link rel="author" title="Opera Software ASA" href="http://www.opera.com/">
 6 <link rel="help" href="http://www.w3.org/TR/css3-multicol/#column-breaks">
 7 <link rel="match" href="reference/multicol-br-inside-avoidcolumn-ref.htm">
 8 <meta name="flags" content="">
 9 <style type="text/css">
10 html {
11 	width: 800px;
12 	background: white;
13 }
14 body {
15 	background: black;
16 	column-count: 3;
17 	column-gap: 0;
18 	column-fill: auto;
19 	height: 300px;
20 }
21 h1 {
22 	column-span: all;
23 	color: white;
24 }
25 div { background: red;
26 	height: 150px;
27 	break-inside: avoid-column;
28 }
29 span {
30 	float: left;
31 }
32 </style>
33 </head>
34 <body>
35 <h1>You should not see the word FAIL</h1>
36 
37 <div>
38 	<span>FAIL</span>
39 </div>
40 
41 <div>
42 	<span>FAIL</span>
43 </div>
44 
45 <div>
46 	<span>FAIL</span>
47 </div>
48 
49 </body>
50 </html>