Bug 1874684 - Part 17: Fix uninitialised variable warnings from clang-tidy. r=allstarschh
[gecko.git] / layout / reftests / css-grid / grid-max-sizing-flex-001.html
blob56adb9e6818282214b6847fe4230c0b11deb4279
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: Testing track flex max-sizing</title>
9 <link rel="author" title="Mats Palmgren" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1151212">
10 <link rel="help" href="http://dev.w3.org/csswg/css-grid/#algo-flex-tracks">
11 <link rel="match" href="grid-max-sizing-flex-001-ref.html">
12 <style type="text/css">
13 body,html { color:black; background:white; font-size:16px; padding:0; margin:0; }
15 .grid {
16 display: grid;
17 grid-auto-columns: minmax(0,1fr);
18 border: dashed blue;
19 float: left;
20 clear: left;
21 justify-items: stretch;
24 .c1 { grid-column: 1 / span 2; min-width:40px; }
25 .r1 { grid-column: 2 / span 3; min-width:70px; }
26 .c3 { grid-column: 3 / span 1; min-width:0; }
28 span {
29 background: gray;
30 border-style: solid;
31 border-width: 1px 3px 5px 7px;
32 padding: 1px 3px;
33 margin: 1px 5px;
36 x { display:inline-block; width:10px; height:18px; }
37 </style>
38 </head>
39 <body>
41 <div class="grid">
42 <span class="c1"><x></x></span>
43 <span class="r1"><x></x></span>
44 </div>
46 <div class="grid">
47 <span class="c1"><x></x></span>
48 <span class="r1"><x></x></span>
49 <span class="c3"><x></x></span>
50 </div>
52 <div class="grid">
53 <span class="c1"><x></x></span>
54 <span class="r1"><x></x></span>
55 <span class="r1"><x></x></span>
56 <span class="r1"><x></x></span>
57 </div>
58 <div class="grid" style="grid-template-columns: minmax(0,1fr) 400px;">
59 <span class="c1"><x></x></span>
60 <span class="r1"><x></x></span>
61 <span class="c3"><x></x></span>
62 </div>
64 <div class="grid" style="width:500px;">
65 <span class="c1" style="min-width:20px"><x></x></span>
66 <span class="r1" style="min-width:10px"><x></x></span>
67 <span class="r1" style="min-width:30px"><x></x></span>
68 <span class="r1" style="min-width:10px"><x></x></span>
69 </div>
71 <div class="grid" style="grid-template-columns: minmax(0,1fr) minmax(0,500px);">
72 <span class="c1"><x></x></span>
73 <span class="r1"><x></x></span>
74 <span class="c3"><x></x></span>
75 </div>
77 <div class="grid">
78 <span class="c1" style="width:100px"><x></x></span>
79 <span class="r1" style="width:300px"><x></x></span>
80 <span class="c3"><x></x></span>
81 </div>
83 <div class="grid">
84 <span class="c1" style="width:100px; border-sizing:border-box"><x></x></span>
85 <span class="r1" style="width:300px; border-sizing:border-box"><x></x></span>
86 <span class="c3"><x></x></span>
87 </div>
89 </body>
90 </html>