Skip to content

Commit 4ad330b

Browse files
committed
[css-grid] Catch the case where an auto-sized track contains no children; growth limit should be zero.
--HG-- extra : rebase_source : 699edd44b97b4611d5aed050c0e5f239f4970521
1 parent 99541af commit 4ad330b

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

css-grid/Overview.bs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2823,6 +2823,11 @@ Resolve Content-Based Track Sizing Functions</h3>
28232823
</ol>
28242824

28252825
Repeat incrementally for items with greater spans until all items have been considered.
2826+
2827+
<li>
2828+
If any track still has an infinite <a>growth limit</a>
2829+
(because, for example, it had no items placed in it),
2830+
set its <a>growth limit</a> to its <a>base size</a>.
28262831
</ol>
28272832

28282833
<p id='extra-space'>

css-grid/Overview.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2834,6 +2834,11 @@ <h3 class="heading settled" data-level=10.4 id=algo-content><span class=secno>10
28342834
</ol>
28352835

28362836
<p>Repeat incrementally for items with greater spans until all items have been considered.</p>
2837+
2838+
<li>
2839+
If any track still has an infinite <a data-link-type=dfn href=#growth-limit title="growth limit">growth limit</a>
2840+
(because, for example, it had no items placed in it),
2841+
set its <a data-link-type=dfn href=#growth-limit title="growth limit">growth limit</a> to its <a data-link-type=dfn href=#base-size title="base size">base size</a>.
28372842
</ol>
28382843

28392844
<p id=extra-space>

0 commit comments

Comments
 (0)