Skip to content

Commit 5283c3b

Browse files
committed
[css-grid] Rename 'hypothetical flex fraction' to 'hypothetical fr size'. Handle sums of flex factors <1 same as flexbox does.
1 parent 7aef63b commit 5283c3b

2 files changed

Lines changed: 761 additions & 748 deletions

File tree

css-grid/Overview.bs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3005,24 +3005,25 @@ Find the Size of an ''fr''</h4>
30053005
minus the <a>base sizes</a> of the non-flexible <a>grid tracks</a>.
30063006

30073007
<li>
3008-
Let the <dfn>hypothetical flex fraction</dfn>
3008+
Let <dfn>flex factor sum</dfn> be the sum of the <a>flex factors</a> of the flexible tracks.
3009+
If this value is less than 1,
3010+
set it to 1 instead.
3011+
3012+
<li>
3013+
Let the <dfn>hypothetical fr size</dfn>
30093014
be the <a>leftover space</a>
3010-
divided by the sum of the <a>flex factors</a> of the flexible tracks.
3015+
divided by the <a>flex factor sum</a>.
30113016

30123017
<li>
3013-
If the product of the <a>hypothetical flex fraction</a> and a flexible track's <a>flex factor</a>
3018+
If the product of the <a>hypothetical fr size</a> and a flexible track's <a>flex factor</a>
30143019
is less than the track's base size,
30153020
restart this algorithm
30163021
treating all such tracks as inflexible.
30173022

30183023
<li>
3019-
Return the <a>hypothetical flex fraction</a>.
3024+
Return the <a>hypothetical fr size</a>.
30203025
</ol>
30213026

3022-
<p class='issue'>
3023-
This section needs adjustment to handle sum(flex-factors) < 1
3024-
the <a href="http://www.w3.org/TR/css-flexbox-1/#resolve-flexible-lengths">same way Flexbox now does it</a>.
3025-
30263027
<h2 id='pagination'>
30273028
Fragmenting Grid Layout</h2>
30283029

0 commit comments

Comments
 (0)