Skip to content

Commit d891281

Browse files
committed
[css-grid-1] Treat min-content constraints as zero free space for the purpose of expanding flexible tracks. #3683
1 parent 1acbcb7 commit d891281

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

css-grid-1/Overview.bs

+17-3
Original file line numberDiff line numberDiff line change
@@ -4299,18 +4299,19 @@ Expand Flexible Tracks</h3>
42994299
First, find the used <a>flex fraction</a>:
43004300

43014301
<dl>
4302-
<dt>If the <a>free space</a> is zero:
4302+
<dt>If the <a>free space</a> is zero
4303+
or if sizing the <a>grid container</a> under a <a>min-content constraint</a>:
43034304
<dd>
43044305
The used <a>flex fraction</a> is zero.
43054306

4306-
<dt>If the <a>free space</a> is a <a>definite</a> length:
4307+
<dt>Otherwise, if the <a>free space</a> is a <a>definite</a> length:
43074308
<dd>
43084309
The used <a>flex fraction</a> is the result of
43094310
<a href="#algo-find-fr-size">finding the size of an fr</a>
43104311
using all of the <a>grid tracks</a>
43114312
and a <a>space to fill</a> of the <a>available grid space</a>.
43124313

4313-
<dt>If the <a>free space</a> is an <a>indefinite</a> length:
4314+
<dt>Otherwise, if the <a>free space</a> is an <a>indefinite</a> length:
43144315
<dd>
43154316
The used <a>flex fraction</a> is the maximum of:
43164317

@@ -4701,6 +4702,19 @@ Major Changes</h4>
47014702
<ins>or it is a <a>flexible track</a></ins>),
47024703
set its <a>growth limit</a> to its <a>base size</a>.
47034704
</blockquote>
4705+
4706+
<li id="change-2017-min-content-flex">
4707+
Treat min-content constraints the same as zero free space
4708+
when expanding flexible tracks.
4709+
(<a href="https://github.com/w3c/csswg-drafts/issues/3683">Issue 3683</a>)
4710+
<blockquote>
4711+
<dl>
4712+
<dt>If the <a>free space</a> is zero
4713+
<ins>or if sizing the <a>grid container</a> under a <a>min-content constraint</a></ins>:
4714+
<dd>
4715+
The used <a>flex fraction</a> is zero.
4716+
</dl>
4717+
</blockquote>
47044718
</ul>
47054719

47064720
<h4 id="clarify-2017">

0 commit comments

Comments
 (0)