Bug 1874684 - Part 17: Fix uninitialised variable warnings from clang-tidy. r=allstarschh
[gecko.git] / layout / reftests / css-grid / grid-fragmentation-008.html
blob6d356e8de139a2205ed94c07e885bedc0ef2d725
1 <!DOCTYPE HTML>
2 <!--
3 Any copyright is dedicated to the Public Domain.
4 http://creativecommons.org/publicdomain/zero/1.0/
5 -->
6 <html><head>
7 <meta charset="utf-8">
8 <title>CSS Grid Test: Fragmentation of height:auto grid, top-of-page</title>
9 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
10 <link rel="help" href="https://drafts.csswg.org/css-grid/#pagination">
11 <link rel="match" href="grid-fragmentation-008-ref.html">
12 <style type="text/css">
13 html,body {
14 color:black; background-color:white; font-size:16px; padding:0; margin:0;
16 body { overflow:hidden; }
18 .columns {
19 position:relative;
20 -ms-columns: 5;
21 -webkit-columns: 5;
22 columns: 5;
23 -ms-column-fill: auto;
24 -webkit-column-fill: auto;
25 column-fill: auto;
26 border: 2px solid salmon;
27 margin-bottom: 5px;
30 .grid {
31 display: grid;
32 grid-template-columns: 30px 30px 30px;
33 grid-auto-rows: 30px;
34 grid-gap: 12px;
35 border:5px solid;
36 border-top-width:0;
37 align-content: space-evenly;
39 span { padding-top:20px; background:lime; border:1px solid black; }
40 .avoid-break { page-break-inside:avoid; break-inside:avoid; }
42 i { display:block; height:10px; margin-top:7px; background:blue; }
43 </style>
44 </head>
45 <body>
47 <div class="columns" style="height: 94px/*trigger OVERFLOW_INCOMPLETE for the item*/">
48 <div style="background:grey">
49 <div class="grid" style="grid-template-rows: 1fr 50px; grid-gap:0;">
50 <span style="height:50px"><i style="height:60px"></i></span>
51 <span class="avoid-break" style="height:60px"><i></i><i></i><i></i></span>
52 <span style="grid-row:2"></span>
53 </div>
54 </div></div>
56 <div class="columns" style="height: 94px/*trigger OVERFLOW_INCOMPLETE for the item*/">
57 <div style="background:grey">
58 <div class="grid" style="grid-template-rows: 1fr 50px; grid-gap:0;">
59 <span style="height:50px"><i style="height:60px"></i></span>
60 <span class="avoid-break" style="height:60px"><i></i><i></i><i></i></span>
61 <span style="grid-row:1/span 2"></span>
62 </div>
63 </div></div>
65 <div class="columns" style="height: 94px/*trigger OVERFLOW_INCOMPLETE for the item*/">
66 <div style="background:grey">
67 <div class="grid" style="grid-template-rows: 1fr 50px; grid-gap:0;">
68 <span style="height:50px"><i style="height:60px"></i></span>
69 <span class="avoid-break" style="height:60px"><i></i><i></i><i></i></span>
70 <span style="grid-row:1/span 4"></span>
71 </div>
72 </div></div>
74 <div class="columns" style="height: 94px/*trigger INCOMPLETE for the item*/">
75 <div style="background:grey">
76 <div class="grid" style="grid-template-rows: 5px 1fr 50px;">
77 <span style="grid-row:2; height:50px"><i style="height:60px"></i></span>
78 <span class="avoid-break" style="grid-row:2; height:60px"><i></i><i></i><i></i></span>
79 <span style="grid-row:1/span 5"></span>
80 </div>
81 </div></div>
83 <div class="columns" style="height: 94px/*trigger INCOMPLETE for the item*/">
84 <div style="background:grey">
85 <div class="grid" style="grid-template-rows: 5px 1fr 50px;">
86 <span style="grid-row:1/span 5"></span>
87 <span style="grid-row:2; height:50px"><i style="height:60px"></i></span>
88 <span class="avoid-break" style="grid-row:2; height:60px"><i></i><i></i><i></i></span>
89 </div>
90 </div></div>
92 </body>
93 </html>