Skip to content

Commit 1acbcb7

Browse files
committed
[css-grid-1] After intrinsic sizing, flexible tracks should have a growth limit equal to their base size in all cases; and therefore not grow during Maximize Tracks. #3693
1 parent 8b98983 commit 1acbcb7

File tree

1 file changed

+26
-4
lines changed

1 file changed

+26
-4
lines changed

css-grid-1/Overview.bs

+26-4
Original file line numberDiff line numberDiff line change
@@ -4161,7 +4161,7 @@ Resolve Intrinsic Track Sizes</h3>
41614161
<ul>
41624162
<li>
41634163
treating <a>flexible tracks</a> as having
4164-
a <a>max track sizing function</a> equal to their <a>min track sizing function</a>
4164+
an infinite <a>growth limit</a>
41654165
<li>
41664166
distributing space <em>only</em> to <a>flexible tracks</a>
41674167
(i.e. treating all other tracks as having a <a>fixed sizing function</a>)
@@ -4176,7 +4176,8 @@ Resolve Intrinsic Track Sizes</h3>
41764176

41774177
<li id="algo-finite-growth">
41784178
If any track still has an infinite <a>growth limit</a>
4179-
(because, for example, it had no items placed in it),
4179+
(because, for example, it had no items placed in it
4180+
or it is a <a>flexible track</a>),
41804181
set its <a>growth limit</a> to its <a>base size</a>.
41814182
</ol>
41824183

@@ -4660,13 +4661,13 @@ Major Changes</h4>
46604661
whose edges coincide with the <del>padding</del> <ins>content</ins> edges of the <a>grid container</a>.
46614662
</blockquote>
46624663

4663-
<li id="change-2018-scrollable-grid">
4664+
<li id="change-2017-scrollable-grid">
46644665
The grid (and surrounding padding) is included in the scrollable overflow area.
46654666
See [[#overflow]].
46664667
(<a href="https://github.com/w3c/csswg-drafts/issues/3638">Issue 3638</a>,
46674668
<a href="https://github.com/w3c/csswg-drafts/issues/3665">Issue 3665</a>)
46684669

4669-
<li id="change-2018-flex-zero-sum">
4670+
<li id="change-2017-flex-zero-sum">
46704671
Don't divide by zero when <a lt="distribute extra space">distributing extra space</a>
46714672
across <a>flexible tracks</a>
46724673
when the sum of their <a>flexible sizing functions</a> is zero.
@@ -4679,6 +4680,27 @@ Major Changes</h4>
46794680
according to the ratios of their <a>flexible sizing functions</a>
46804681
rather than distributing space equally
46814682
</blockquote>
4683+
4684+
<li id="change-2017-no-maximize-flex">
4685+
Don't calculate growth limits of flexible tracks as intrinsic sizes;
4686+
set them to the base size at the end of intrinsic track sizing
4687+
so that they don't grow during Maximize Tracks
4688+
(due to differences between interpreting ''grid-template-columns/auto''
4689+
<a>min track sizing functions</a> and <a>max track sizing functions</a>, etc.).
4690+
(<a href="https://github.com/w3c/csswg-drafts/issues/3693">Issue 3693</a>)
4691+
<blockquote>
4692+
<ul>
4693+
<li>treating <a>flexible tracks</a> as having
4694+
<del>a <a>max track sizing function</a> equal to their <a>min track sizing function</a></del>
4695+
<ins>an infinite <a>growth limit</a></ins>
4696+
</ul>
4697+
</blockquote>
4698+
<blockquote>
4699+
<p>If any track still has an infinite <a>growth limit</a>
4700+
(because, for example, it had no items placed in it
4701+
<ins>or it is a <a>flexible track</a></ins>),
4702+
set its <a>growth limit</a> to its <a>base size</a>.
4703+
</blockquote>
46824704
</ul>
46834705

46844706
<h4 id="clarify-2017">

0 commit comments

Comments
 (0)