Skip to content

Commit aaa597b

Browse files
committed
[css-grid] Clarify that step 2.2 of the 'distribute extra space' algo doesn't do anything to growth limits.
1 parent 9f430f9 commit aaa597b

2 files changed

Lines changed: 15 additions & 3 deletions

File tree

css-grid/Overview.bs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2769,19 +2769,25 @@ Resolve Content-Based Track Sizing Functions</h3>
27692769
(For infinite <i>growth limits</i>, substitute the track's <i>base size</i>.)
27702770
This is the space to distribute. Floor it at zero.
27712771
<pre><var>extra-space</var> = max(0, <var>size-contribution</var> - ∑<var>track-sizes</var>)</pre>
2772+
27722773
<li>
2773-
<strong>Distribute space up to growth limits:</strong>
2774+
<strong>Distribute space to base sizes up to growth limits:</strong>
27742775
Distribute the space equally to the planned increase of each spanned track with an affected size,
27752776
freezing tracks as their planned size reaches their <i>growth limits</i>
27762777
(and continuing to grow the unfrozen tracks as needed).
27772778

27782779
If a track was marked as infinitely growable for this phase,
27792780
treat its <i>growth limit</i> as infinite for this calculation
27802781
(and then unmark it).
2782+
2783+
Note: If the affected size was a <a>growth limit</a>,
2784+
this step has no effect.
2785+
27812786
<li>
27822787
<strong>Distribute space beyond growth limits:</strong>
27832788
If space remains after all tracks are frozen,
2784-
unfreeze and continue to distribute space to&hellip;
2789+
unfreeze and continue to distribute space to…
2790+
27852791
<ul>
27862792
<li>
27872793
when handling ''min-content'' <i>base sizes</i>:

css-grid/Overview.html

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2821,19 +2821,25 @@ <h3 class="heading settled heading" data-level=10.4 id=algo-content><span class=
28212821
(For infinite <a data-link-type=dfn href=#growth-limit title="growth limits">growth limits</a>, substitute the track’s <a data-link-type=dfn href=#base-size title="base size">base size</a>.)
28222822
This is the space to distribute. Floor it at zero.
28232823
<pre><var>extra-space</var> = max(0, <var>size-contribution</var> - ∑<var>track-sizes</var>)</pre>
2824+
28242825
<li>
2825-
<strong>Distribute space up to growth limits:</strong>
2826+
<strong>Distribute space to base sizes up to growth limits:</strong>
28262827
Distribute the space equally to the planned increase of each spanned track with an affected size,
28272828
freezing tracks as their planned size reaches their <a data-link-type=dfn href=#growth-limit title="growth limits">growth limits</a>
28282829
(and continuing to grow the unfrozen tracks as needed).
28292830

28302831
<p>If a track was marked as infinitely growable for this phase,
28312832
treat its <a data-link-type=dfn href=#growth-limit title="growth limit">growth limit</a> as infinite for this calculation
28322833
(and then unmark it).</p>
2834+
2835+
<p class=note>Note: If the affected size was a <a data-link-type=dfn href=#growth-limit title="growth limit">growth limit</a>,
2836+
this step has no effect.</p>
2837+
28332838
<li>
28342839
<strong>Distribute space beyond growth limits:</strong>
28352840
If space remains after all tracks are frozen,
28362841
unfreeze and continue to distribute space to…
2842+
28372843
<ul>
28382844
<li>
28392845
when handling <a class=css data-link-type=maybe href=#valuedef-min-content title=min-content>min-content</a> <a data-link-type=dfn href=#base-size title="base sizes">base sizes</a>:

0 commit comments

Comments
 (0)