Skip to content

Commit 138fe14

Browse files
committed
[css-grid-1] Clarify conditions for overgrowing tracks. #3621
1 parent f72db50 commit 138fe14

1 file changed

Lines changed: 27 additions & 6 deletions

File tree

css-grid-1/Overview.bs

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4045,7 +4045,7 @@ Resolve Intrinsic Track Sizes</h3>
40454045
<!-- auto-min contribution <= min-content contribution <= max-content contribution -->
40464046

40474047
<ol>
4048-
<li>
4048+
<li id="track-size-intrinsic-min">
40494049
<strong>For intrinsic minimums:</strong>
40504050
First increase the <a>base size</a> of tracks with
40514051
an <a lt="intrinsic sizing function">intrinsic</a> <a>min track sizing function</a>
@@ -4064,14 +4064,14 @@ Resolve Intrinsic Track Sizes</h3>
40644064
of any tracks it spans,
40654065
and is applied if it only spans such tracks.)
40664066

4067-
<li>
4067+
<li id="track-size-content-min">
40684068
<strong>For content-based minimums:</strong>
40694069
Next continue to increase the <a>base size</a> of tracks with
40704070
a <a>min track sizing function</a> of ''min-content'' or ''max-content''
40714071
by <a href="#extra-space">distributing extra space</a> as needed
40724072
to account for these items' <a>min-content contributions</a>.
40734073

4074-
<li>
4074+
<li id="track-size-max-content-min">
40754075
<strong>For max-content minimums:</strong>
40764076
Next, if the grid container is being sized
40774077
under a <a>max-content constraint</a>,
@@ -4238,14 +4238,16 @@ Distributing Extra Space Across Spanned Tracks</h4>
42384238

42394239
<ul>
42404240
<li>
4241-
when handling <a>base sizes</a> of tracks with ''min-content'' or ''auto'' minimums:
4241+
when <a href="#track-size-intrinsic-min">accommodating minimum contributions</a>
4242+
or <a href="#track-size-content-min">accommodating min-content contributions</a>:
42424243
any affected track that happens to also have an intrinsic <a>max track sizing function</a>;
42434244
if there are no such tracks, then all affected tracks.
42444245
<li>
4245-
when handling <a>base sizes</a> of tracks with ''max-content'' minimums:
4246+
when <a href="#track-size-max-content-min">accommodating max-content contributions</a>:
42464247
any affected track that happens to also have a ''max-content'' <a>max track sizing function</a>;
42474248
if there are no such tracks, then all affected tracks.
4248-
<li>when handling any intrinsic <a>growth limit</a>:
4249+
<li>
4250+
when handling any intrinsic <a>growth limit</a>:
42494251
all affected tracks.
42504252
</ul>
42514253

@@ -4758,6 +4760,25 @@ Clarifications</h4>
47584760
which is considered a type of <a>intrinsic size contribution</a>,</ins>
47594761
is the outer size that would result&hellip;
47604762
</blockquote>
4763+
<li id="change-2017-overgrow">
4764+
Clarify the conditions for distributing space beyond growth limits
4765+
by clearly matching against the correct phases.
4766+
(<a href="https://github.com/w3c/csswg-drafts/issues/3621">Issue 3621</a>)
4767+
<blockquote>
4768+
<ul>
4769+
<li>
4770+
when <del>handling base sizes of tracks with ''min-content'' or ''auto'' minimums</del>
4771+
<ins>accommodating minimum contributions
4772+
or accommodating min-content contributions</ins>:
4773+
any affected track that happens to also have an intrinsic <a>max track sizing function</a>;
4774+
if there are no such tracks, then all affected tracks.
4775+
<li>
4776+
when <del>handling base sizes of tracks with ''max-content'' minimums</del>
4777+
<ins>accommodating max-content contributions</ins>:
4778+
any affected track that happens to also have a ''max-content'' <a>max track sizing function</a>;
4779+
if there are no such tracks, then all affected tracks.
4780+
</ul>
4781+
</blockquote>
47614782
</ul>
47624783

47634784
<h3 id="changes-2016">

0 commit comments

Comments
 (0)