1<!DOCTYPE html>
2
3<link href="resources/grid.css" rel="stylesheet">
4<link href="../css-intrinsic-dimensions/resources/width-keyword-classes.css" rel="stylesheet">
5
6<style>
7
8.item {
9 font: 10px/1 Ahem;
10 background: cyan;
11 grid-column: 1 / -1;
12}
13
14.abs {
15 width: 100%;
16 height: 5px;
17 position: absolute;
18}
19
20.grid {
21 border: 2px solid black;
22 display: grid;
23 position: relative;
24 padding-top: 10px;
25 margin-bottom: 10px;
26 width: 100px;
27 justify-items: start;
28}
29
30.float {
31 float: left;
32 width: 200px;
33}
34
35.col1 { grid-column: 1 / 2; background: orange; }
36.col2 { grid-column: 2 / 3; background: indigo; }
37.col3 { grid-column: 3 / 4; background: green; }
38
39.gridMinContent { grid-template: 20px / minmax(0px, -webkit-min-content) 5px; }
40.gridMaxContent { grid-template: 20px / 5px minmax(0px, -webkit-max-content); }
41.gridMinMaxContent { grid-template: 20px / minmax(0px, -webkit-min-content) 5% minmax(0px, -webkit-max-content); }
42.gridAutoMinContent { grid-template: 20px / minmax(0px, auto) 5px minmax(0px, -webkit-min-content); }
43.gridFitContentAuto { grid-template: 20px / fit-content(100px) 5px minmax(0px, auto); }
44
45</style>
46
47<div class="float">
48
49<!-- Fails due to https://bugs.chromium.org/p/chromium/issues/detail?id=654737 -->
50<!--
51<div class="grid gridMinContent">
52 <div class="item" style="min-width: 15px;">XXXX XXXX</div>
53 <div class="abs col1"></div>
54 <div class="abs col2"></div>
55</div>
56-->
57
58<div class="grid gridMinContent">
59 <div class="item" style="min-width: 55px;">XXXX XXXX</div>
60 <div class="abs col1"></div>
61 <div class="abs col2"></div>
62</div>
63
64<!-- Fails due to https://bugs.chromium.org/p/chromium/issues/detail?id=654737 -->
65<!--
66<div class="grid gridMinContent">
67 <div class="item min-width-max-content">XXXX XXXX</div>
68 <div class="abs col1"></div>
69 <div class="abs col2"></div>
70</div>
71-->
72
73<div class="grid gridMaxContent">
74 <div class="item" style="min-width: 15px;">XXXX XXXX</div>
75 <div class="abs col1"></div>
76 <div class="abs col2"></div>
77</div>
78
79<div class="grid gridMaxContent">
80 <div class="item" style="min-width: 55px;">XXXX XXXX</div>
81 <div class="abs col1"></div>
82 <div class="abs col2"></div>
83</div>
84
85<div class="grid gridMaxContent">
86 <div class="item min-width-max-content">XXXX XXXX</div>
87 <div class="abs col1"></div>
88 <div class="abs col2"></div>
89</div>
90
91</div>
92
93<div class="float">
94
95<!-- Fails due to https://bugs.chromium.org/p/chromium/issues/detail?id=654737 -->
96<!--
97<div class="grid gridMinMaxContent">
98 <div class="item" style="min-width: 15px;">XXXX XXXX</div>
99 <div class="abs col1"></div>
100 <div class="abs col2"></div>
101 <div class="abs col3"></div>
102</div>
103-->
104
105<div class="grid gridMinMaxContent">
106 <div class="item" style="min-width: 55px;">XXXX XXXX</div>
107 <div class="abs col1"></div>
108 <div class="abs col2"></div>
109 <div class="abs col3"></div>
110</div>
111
112<!-- Fails due to https://bugs.chromium.org/p/chromium/issues/detail?id=654737 -->
113<!--
114<div class="grid gridMinMaxContent">
115 <div class="item min-width-max-content">XXXX XXXX</div>
116 <div class="abs col1"></div>
117 <div class="abs col2"></div>
118 <div class="abs col3"></div>
119</div>
120
121<!-- Fails due to https://bugs.chromium.org/p/chromium/issues/detail?id=654737 -->
122<!--
123<div class="grid gridAutoMinContent">
124 <div class="item" style="min-width: 15px;">XXXX XXXX</div>
125 <div class="abs col1"></div>
126 <div class="abs col2"></div>
127 <div class="abs col3"></div>
128</div>
129-->
130
131<div class="grid gridAutoMinContent">
132 <div class="item" style="min-width: 55px;">XXXX XXXX</div>
133 <div class="abs col1"></div>
134 <div class="abs col2"></div>
135 <div class="abs col3"></div>
136</div>
137
138<!-- Fails due to https://bugs.chromium.org/p/chromium/issues/detail?id=654737 -->
139<!--
140<div class="grid gridAutoMinContent" style="justify-items: start">
141 <div class="item min-width-max-content">XXXX XXXX</div>
142 <div class="abs col1"></div>
143 <div class="abs col2"></div>
144 <div class="abs col3"></div>
145</div>
146-->
147
148</div>
149
150<div class="float">
151
152<div class="grid gridFitContentAuto">
153 <div class="item" style="min-width: 15px;">XXXX XXXX</div>
154 <div class="abs col1"></div>
155 <div class="abs col2"></div>
156 <div class="abs col3"></div>
157</div>
158
159<div class="grid gridFitContentAuto">
160 <div class="item" style="min-width: 55px;">XXXX XXXX</div>
161 <div class="abs col1"></div>
162 <div class="abs col2"></div>
163 <div class="abs col3"></div>
164</div>
165
166<div class="grid gridFitContentAuto">
167 <div class="item min-width-max-content">XXXX XXXX</div>
168 <div class="abs col1"></div>
169 <div class="abs col2"></div>
170 <div class="abs col3"></div>
171</div>
172
173</div>