regions-multicol-026

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

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Flags
ahem
Assertion
This test checks that text content flows through a region with a height smaller than the second region and that it overflows the first region 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 text content
 4                      flowing into region of smaller 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 height smaller than the second region and
11                                  that it overflows the first region as a multi-column container
12                                  before flowing into the second region." name="assert">
13     <meta content="ahem" name="flags">
14     <style type="text/css">
15         #named-flow-multicol {
16             font-family: Ahem;
17             font-size: 20px;
18             line-height: 1em;
19             width: 130px;
20             height: 120px;
21             columns: 2;
22             column-gap: 10px;
23             flow-into: multicol;
24         }
25         .green {
26             color: green;
27         }
28         .blue {
29             color: blue;
30         }
31         #region-1, #region-2 {
32             position: absolute;
33             width: 130px;
34             flow-from: multicol;
35         }
36         #region-1 {
37             top: 70px;
38             left: 20px;
39             height: 60px;
40         }
41         #region-2 {
42             top: 70px;
43             left: 190px;
44             height: 120px;
45         }
46         .failure {
47            position: absolute;
48            top: 70px;
49            background-color: red;
50            width: 60px;
51            height: 60px;
52            z-index: -10;
53         }
54         #block-1 {
55             left: 20px;
56         }
57         #block-2 {
58             left: 90px;
59         }
60         #block-3 {
61             left: 190px;
62             height: 120px;
63         }
64     </style>
65 </head>
66 <body>
67     <p>The test passes if there are two green side by side squares on the left of one blue vertical rectangle.
68         There should be no red.</p>
69     <div id="named-flow-multicol">
70        <span class="green">XXX XXX XXX XXX XXX XXX</span>
71        <span class="blue">XXX XXX XXX XXX XXX XXX</span>
72     </div>
73     <div id="region-1"></div>
74     <div id="region-2"></div>
75     <div id="block-1" class="failure"></div>
76     <div id="block-2" class="failure"></div>
77     <div id="block-3" class="failure"></div>
78 
79 
80 </body></html>