regions-multicol-025

One named flow multi-column container with monolithic content flowing into region of smaller width/height than the second region

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
This test checks that text content flows through a region with a smaller width + height than the multi-column named flow and the second region and that it overflows the first region visibly as a multi-column container before flowing into the second region.

Source

 1 <!DOCTYPE html>
 2 <html><head>
 3     <title>CSS Test: One named flow multi-column container with monolithic content
 4                      flowing into region of smaller width/height than the second region</title>
 5     <link href="mailto:rhauck@adobe.com" rel="author" title="Rebecca Hauck">
 6     <link href="http://www.w3.org/TR/css3-regions/#multi-column-regions" rel="help">
 7     <link href="http://www.w3.org/TR/css3-multicol/#columns" rel="help">
 8     <link href="reference/regions-multicol-024-ref.htm" rel="match">
 9     <meta content="This test checks that text content flows
10                                  through a region with a smaller width + height than the multi-column named flow
11                                  and the second region and that it overflows the first region visibly as a
12                                  multi-column container before flowing into the second region." name="assert">
13     <style type="text/css">
14         #named-flow-multicol {
15             width: 130px;
16             height: 120px;
17             columns: 2;
18             column-gap: 10px;
19             flow-into: multicol;
20         }
21         .green, .blue {
22             width: 60px;
23             height: 120px;
24         }
25         .green {
26             background-color: green;
27         }
28         .blue {
29             background-color: blue;
30         }
31         #region-1, #region-2 {
32             position: absolute;
33             flow-from: multicol;
34         }
35         #region-1 {
36             top: 70px;
37             left: 20px;
38             width: 60px;
39             height: 60px;
40         }
41         #region-2 {
42             top: 70px;
43             left: 190px;
44             width: 130px;
45             height: 120px;
46         }
47         .failure {
48            position: absolute;
49            top: 70px;
50            width: 60px;
51            background-color: red;
52            z-index: -10;
53         }
54         #block-1 {
55             left: 20px;
56             height: 60px;
57         }
58         #block-2 {
59             left: 90px;
60             height: 60px;
61         }
62         #block-3 {
63             left: 190px;
64             height: 120px;
65         }
66     </style>
67 </head>
68 <body>
69     <p>The test passes if there are two green side by side squares on the left of one blue vertical rectangle.
70         There should be no red.</p>
71     <div id="named-flow-multicol">
72        <div class="green named-flow-block"></div>
73        <div class="blue named-flow-block"></div>
74     </div>
75     <div id="region-1"></div>
76     <div id="region-2"></div>
77     <div id="block-1" class="failure"></div>
78     <div id="block-2" class="failure"></div>
79     <div id="block-3" class="failure"></div>
80 
81 
82 </body></html>