Bug 1874684 - Part 17: Fix uninitialised variable warnings from clang-tidy. r=allstarschh
[gecko.git] / layout / reftests / css-grid / grid-fragmentation-002-ref.html
blob069bef3be2a9bf0e58a638d95b55315f201d2f3e
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>Reference: Fragmentation height:auto two row grid without grid items</title>
9 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1144096">
10 <style type="text/css">
11 html,body {
12 color:black; background-color:white; font-size:16px; padding:0; margin:0;
14 body { overflow:hidden; }
16 .columns {
17 position:relative;
18 -ms-columns: 5;
19 -webkit-columns: 5;
20 columns: 5;
21 -ms-column-fill: auto;
22 -webkit-column-fill: auto;
23 column-fill: auto;
24 border: 2px solid salmon;
25 margin-bottom: 5px;
28 .block {
29 position:relative;
30 border:5px solid;
32 .grid {
33 display: grid;
34 position:relative;
35 grid-template-columns: 30px 30px 30px;
36 grid-template-rows: 50px;
37 grid-gap: 12px;
38 border:5px solid;
40 span { grid-row:1/2; position:absolute; top:0;bottom:0;right:0;left:0;background:lime; border:1px solid black; }
41 x { display:block; height:20px; }
43 .t { border-bottom-width:0; }
44 .b { border-top-width:0; }
45 br { page-break-before:always; break-before:always; }
47 </style>
48 </head>
49 <body>
51 <div class="columns" style="height: 130px/*fragmentainer ends in the end border*/">
52 <div style="padding-top:10px; background:grey">
53 <div class="grid t">
54 <span style="height:48px"><x></x></span>
55 </div>
56 <br>
57 <div class="grid b">
58 </div></div></div>
60 <div class="columns" style="height: 64px/*fragmentainer ends in the end border*/">
61 <div style="padding-top:10px; background:grey">
62 <div class="grid t">
63 <span style="height:48px"><x></x></span>
64 </div>
65 <div class="grid b">
66 </div></div></div>
68 <div class="columns" style="height: 18px/*fragmentainer ends in the end border*/">
69 <div style="padding-top:10px; background:grey">
70 <div class="block">
71 <span style="height:0"></span>
72 </div></div></div>
74 <div class="columns" style="height: 20px/*fragmentainer ends in the end border*/">
75 <div style="padding-top:10px; background:grey">
76 <div class="block t" style="height:2px">
77 <span style="height:0px"></span>
78 </div>
79 <div class="block b" style="margin-top:6px;height:0px">
80 </div></div></div>
82 <div class="columns" style="height: 100px/*fragmentainer ends in the last row*/">
83 <div style="padding-top:10px; background:grey">
84 <div class="grid t">
85 <span style="height:48px"><x></x></span>
86 </div>
87 <br>
88 <div class="grid b">
89 </div></div></div>
91 <div class="columns" style="height: 70px/*fragmentainer ends in the grid gap between the rows */">
92 <div style="padding-top:10px; background:grey">
93 <div class="grid t">
94 <span style="height:48px"><x></x></span>
95 </div>
96 <div class="grid b">
97 </div></div></div>
99 <div class="columns" style="height: 40px/*fragmentainer ends in the first row*/; margin-bottom:30px">
100 <div style="padding-top:10px; background:grey">
101 <div class="grid t">
102 <span><x></x></span>
103 </div>
104 <div class="grid b">
105 </div></div></div>
107 <!--
109 TODO (bug 1347692): this caused too many intermittent failures, see bug 1317149 and bug 1264056
111 <div class="columns" style="height: 13px/*fragmentainer ends in the grid start border */; margin-bottom:60px">
112 <div style="padding-top:10px; background:grey">
113 <div class="grid t">
114 <span><x></x></span>
115 </div>
116 <div class="grid b">
117 </div></div></div>
120 <div class="columns" style="height: 8px/*fragmentainer ends above the grid*/; margin-bottom:60px">
121 <div style="padding-top:10px; background:grey">
122 <div class="grid t">
123 <span><x></x></span>
124 </div>
125 <div class="grid b">
126 </div></div></div>
128 <div class="columns" style="height: 0px/*zero height fragmentainer*/; margin-bottom:60px">
129 <div style="padding-top:10px; background:grey">
130 <div class="grid t">
131 <span><x></x></span>
132 </div>
133 <div class="grid b">
134 </div></div></div>
137 </body>
138 </html>