Skip to content

Commit 9a0b575

Browse files
committed
1 parent af9a7a6 commit 9a0b575

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

css-grid/Overview.bs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3437,6 +3437,35 @@ Grid Sizing Algorithm</h3>
34373437
if any row with a <a>definite</a> <a>max track sizing function</a>
34383438
had that size and all other rows were infinite.
34393439

3440+
<div class="issue">
3441+
Alternatively, we could
3442+
assume the <a>available space</a> that it would have as the maximum of:
3443+
3444+
<ul>
3445+
<li>
3446+
the sum of all <a>definite</a> track sizes that it spans
3447+
(using the maximum of a track’s min and max sizing functions,
3448+
if both are definite,
3449+
the argument to ''fit-content()'' if that is definite).
3450+
<li>
3451+
the item’s ''min-content'' size,
3452+
if any track that it spans
3453+
has a ''min-content'' or ''fit-content()'' sizing function.
3454+
<li>
3455+
the item's <a>automatic minimum size</a>,
3456+
if any track that it spans
3457+
has an ''auto'' min sizing function.
3458+
<li>
3459+
infinity, if any track that it spans
3460+
has a ''max-content'' min sizing function
3461+
or a ''max-content'', ''auto'', or <<flex>> max sizing function.
3462+
</ul>
3463+
3464+
This is likely to reduce the amount of re-layout passes that are necessary,
3465+
but will it produce a different result in any cases?
3466+
Should we adopt it into the spec?
3467+
</div>
3468+
34403469
<li>
34413470
Next, the <a>track sizing algorithm</a> resolves the sizes of the <a>grid rows</a>,
34423471
using the <a>grid column</a> sizes calculated in the previous step.

0 commit comments

Comments
 (0)