grid-inline-multicol-001

'column-*' properties from inline grid container does not apply to grid items

WeasyPrint

Reference (good) by WeasyPrint

Reference (good) by this browser

This browser

Assertion
This test checks that 'column-*' properties in the Multicol module are ignored in grid items when applied to an inline grid container.

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 Grid Layout Test: 'column-*' properties from inline grid container does not apply to grid items</title>
 5         <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com">
 6         <link rel="help" href="http://www.w3.org/TR/css-grid-1/#grid-containers" title="3.1 Establishing Grid Containers">
 7         <link rel="help" href="http://www.w3.org/TR/css3-multicol/#the-number-and-width-of-columns" title="3. The number and width of columns">
 8         <link rel="match" href="reference/ref-filled-green-100px-square.htm">
 9         <meta name="assert" content="This test checks that 'column-*' properties in the Multicol module are ignored in grid items when applied to an inline grid container.">
10         <style type="text/css">
11             #reference-overlapped-red {
12                 position: absolute;
13                 background-color: red;
14                 width: 100px;
15                 height: 100px;
16                 z-index: -1;
17             }
18 
19             .test-overlapping-green {
20                 background-color: green;
21                 width: 100px;
22                 height: 50px;
23             }
24 
25             .inline-grid {
26                 display: inline-grid;
27                 column-width: 50px;
28             }
29         </style>
30     </head>
31     <body>
32         <p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
33 
34         <div id="reference-overlapped-red"></div>
35 
36         <div class="inline-grid">
37             <div class="test-overlapping-green"></div>
38             <div class="test-overlapping-green"></div>
39         </div>
40     </body>
41 </html>