Bug 1298550 - Re-enable the now-passing part of grid-percent-grid-gap-001.html. r...
[gecko.git] / layout / reftests / css-grid / grid-repeat-auto-fill-fit-013.html
blob5a9c05d7349fb21e5e5d848cf9ede5a00ea17b94
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: test placement in repeat auto-fit grids with leading implicit tracks</title>
9 <link rel="author" title="Brad Werth" href="https://bugzilla.mozilla.org/show_bug.cgi?id=1416350">
10 <link rel="help" href="https://drafts.csswg.org/css-grid/#valdef-repeat-auto-fill">
11 <link rel="match" href="grid-repeat-auto-fill-fit-013-ref.html">
12 <style type="text/css">
13 body {
14 margin: 10px;
15 font-size: 10px;
17 .wrapper {
18 display: grid;
19 width: 600px;
20 background-color: #f00;
21 grid-auto-columns: 10px;
22 grid-auto-flow: row;
24 .wrapper > * {
25 background-color: #444;
26 color: #fff;
29 .relative {
30 position: relative;
33 .absposchild {
34 z-index: -1;
35 position: absolute;
36 grid-column-end: span 1;
37 top: 0px;
38 bottom: 0px;
39 left: 0px;
40 right: 0px;
43 .templateFit {
44 grid-template-columns: repeat(auto-fit, 40px);
46 .templateFixedFit {
47 grid-template-columns: 20px repeat(auto-fit, 40px);
49 .templateFitFixed {
50 grid-template-columns: repeat(auto-fit, 40px) 40px;
52 .templateFixedFitFixed {
53 grid-template-columns: 20px repeat(auto-fit, 40px) 40px;
56 z {
57 grid-column: -18;
59 z::after {
60 content: "Z";
63 y {
64 grid-column: auto;
66 y::after {
67 content: "Y";
71 b {
72 grid-column: 3;
74 b::after {
75 content: "B";
78 c {
79 grid-column: 5;
81 c::after {
82 content: "C";
85 d {
86 grid-column: 7;
88 d::after {
89 content: "D";
92 e {
93 grid-column: 9;
95 e::after {
96 content: "E";
99 f {
100 grid-column: 11;
102 f::after {
103 content: "F";
106 </style>
107 </head>
108 <body>
110 <div class="wrapper templateFit"><z></z><b></b><y></y></div>
111 <div class="wrapper templateFit"><z></z><b></b><c></c><d></d></div>
112 <div class="wrapper templateFit"><z></z><b></b><c></c><d></d><e></e><f></f></div>
113 <div class="wrapper templateFit relative"><z></z><b></b><c class="absposchild"></c><d></d></div>
114 <div class="wrapper templateFit relative"><z></z><b></b><c class="absposchild"></c><d></d><e class="absposchild"></e><f></f></div>
116 <div class="wrapper templateFixedFit"><z></z><b></b><y></y></div>
117 <div class="wrapper templateFixedFit"><z></z><b></b><c></c><d></d></div>
118 <div class="wrapper templateFixedFit"><z></z><b></b><c></c><d></d><e></e><f></f></div>
119 <div class="wrapper templateFixedFit relative"><z></z><b></b><c class="absposchild"></c><d></d></div>
120 <div class="wrapper templateFixedFit relative"><z></z><b></b><c class="absposchild"></c><d></d><e class="absposchild"></e><f></f></div>
122 <div class="wrapper templateFitFixed"><z></z><b></b><y></y></div>
123 <div class="wrapper templateFitFixed"><z></z><b></b><c></c><d></d></div>
124 <div class="wrapper templateFitFixed"><z></z><b></b><c></c><d></d><e></e><f></f></div>
125 <div class="wrapper templateFitFixed relative"><z></z><b></b><c class="absposchild"></c><d></d></div>
126 <div class="wrapper templateFitFixed relative"><z></z><b></b><c class="absposchild"></c><d></d><e class="absposchild"></e><f></f></div>
128 <div class="wrapper templateFixedFitFixed"><z></z><b></b><y></y></div>
129 <div class="wrapper templateFixedFitFixed"><z></z><b></b><c></c><d></d></div>
130 <div class="wrapper templateFixedFitFixed"><z></z><b></b><c></c><d></d><e></e><f></f></div>
131 <div class="wrapper templateFixedFitFixed relative"><z></z><b></b><c class="absposchild"></c><d></d></div>
132 <div class="wrapper templateFixedFitFixed relative"><z></z><b></b><c class="absposchild"></c><d></d><e class="absposchild"></e><f></f></div>
134 </body>
135 </html>