Skip to content

Commit 19695c0

Browse files
committed
[css-grid] Copy over infinite growth-limit handling rules. Still confused on one of them. :/
1 parent 94be4d7 commit 19695c0

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

css-grid/Overview.bs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3472,10 +3472,13 @@ Resolve Intrinsic Track Sizes</h3>
34723472
For each considered item,
34733473
<ol>
34743474
<li>
3475-
Subtract the corresponding (non-infinite) sizes of all spanned tracks
3475+
Subtract the corresponding sizes of all spanned tracks
34763476
from its size contribution to find the item's remaining size contribution.
3477+
(For infinite <i>growth limits</i>, use the track's <i>base size</i> instead.)
34773478
This is the space to distribute.
34783479
<pre><var>extra-space</var> = <var>size-contribution</var> - ∑<var>track-sizes</var></pre>
3480+
<p class="issue">The MS algorithm treats things that were infinity (and are no longer) specially here.
3481+
Don't yet understand why.
34793482
<li>
34803483
Distribute the space equally to the tracked increase of each spanned track with an affected size,
34813484
freezing maxed-out tracks as they hit their maximums.
@@ -3498,6 +3501,8 @@ Resolve Intrinsic Track Sizes</h3>
34983501
Update the tracks' affected <i>base sizes</i> and <i>growth limits</i>
34993502
by folding in the calculated increase
35003503
so that the next round of space distribution will account for the increase.
3504+
(If the <i>growth limit</i> is infinite,
3505+
set it to the track's <i>base size</i> plus the calculated increase.)
35013506
</ol>
35023507
</ol>
35033508

css-grid/Overview.html

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3446,10 +3446,13 @@ <h3 class="heading settled heading" data-level=12.1 id=resolve-intrinsic><span c
34463446
<p> For each considered item,
34473447
<ol>
34483448
<li>
3449-
Subtract the corresponding (non-infinite) sizes of all spanned tracks
3449+
Subtract the corresponding sizes of all spanned tracks
34503450
from its size contribution to find the item’s remaining size contribution.
3451+
(For infinite <a data-link-type=dfn href=#growth-limit title="growth limits">growth limits</a>, use the track’s <a data-link-type=dfn href=#base-size title="base size">base size</a> instead.)
34513452
This is the space to distribute.
3452-
<pre><var>extra-space</var> = <var>size-contribution</var> - ∑<var>track-sizes</var></pre> <li>
3453+
<pre><var>extra-space</var> = <var>size-contribution</var> - ∑<var>track-sizes</var></pre> <p class=issue id=issue-28cbdbc2><a class=self-link href=#issue-28cbdbc2></a>The MS algorithm treats things that were infinity (and are no longer) specially here.
3454+
Don’t yet understand why.
3455+
<li>
34533456
Distribute the space equally to the tracked increase of each spanned track with an affected size,
34543457
freezing maxed-out tracks as they hit their maximums.
34553458
<pre><var>track-size-increase</var> = max(<var>track-size-increase</var>, <var>share-of-extra-space</var>)</pre> <li>
@@ -3470,6 +3473,8 @@ <h3 class="heading settled heading" data-level=12.1 id=resolve-intrinsic><span c
34703473
Update the tracks' affected <a data-link-type=dfn href=#base-size title="base sizes">base sizes</a> and <a data-link-type=dfn href=#growth-limit title="growth limits">growth limits</a>
34713474
by folding in the calculated increase
34723475
so that the next round of space distribution will account for the increase.
3476+
(If the <a data-link-type=dfn href=#growth-limit title="growth limit">growth limit</a> is infinite,
3477+
set it to the track’s <a data-link-type=dfn href=#base-size title="base size">base size</a> plus the calculated increase.)
34733478
</ol>
34743479
</ol>
34753480

@@ -3877,7 +3882,9 @@ <h2 class="no-num heading settled" id=issues-index><span class=content>Issues In
38773882
same as how Flexbox does it.
38783883

38793884

3880-
<a href=#issue-55d6dc75></a></div><div class=issue>
3885+
<a href=#issue-55d6dc75></a></div><div class=issue>The MS algorithm treats things that were infinity (and are no longer) specially here.
3886+
Don’t yet understand why.
3887+
<a href=#issue-28cbdbc2></a></div><div class=issue>
38813888
Fill this in.
38823889

38833890
<a href=#issue-64ae91a4></a></div></div>

0 commit comments

Comments
 (0)