Skip to content

Commit 0a8cada

Browse files
committed
Add issue containing Alex's suggestion for simpler free-space-distribution step.
1 parent 728271b commit 0a8cada

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1949,6 +1949,25 @@ <h2 id=layout-algorithm><span class=secno>7. </span> Flexbox Layout
19491949
<p>To <dfn id=resolve-the-flexible-lengths>resolve the flexible
19501950
lengths</dfn> of the items within a flexbox line:
19511951

1952+
<div class=issue>
1953+
<p>Alex suggests that the following should work more simply:</p>
1954+
1955+
<ol>
1956+
<li>distribute space
1957+
1958+
<li>fix max violations
1959+
1960+
<li>distribute space
1961+
1962+
<li>fix min violations. items with violation lose flexibility.
1963+
1964+
<li>repeat until there are no more violations
1965+
</ol>
1966+
1967+
<p>I need to think on this and ensure it won't give suboptimal results in
1968+
some cases.</p>
1969+
</div>
1970+
19521971
<ol>
19531972
<li>If this is the first time this step is reached in the current
19541973
invocation of this algorithm, <a

css3-flexbox/Overview.src.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -954,6 +954,18 @@ <h2 id='layout-algorithm'>
954954

955955
<p>To <dfn>resolve the flexible lengths</dfn> of the items within a flexbox line:</p>
956956

957+
<div class='issue'>
958+
<p>Alex suggests that the following should work more simply:</p>
959+
<ol>
960+
<li>distribute space
961+
<li>fix max violations
962+
<li>distribute space
963+
<li>fix min violations. items with violation lose flexibility.
964+
<li>repeat until there are no more violations
965+
</ol>
966+
<p>I need to think on this and ensure it won't give suboptimal results in some cases.</p>
967+
</div>
968+
957969
<ol>
958970
<li>If this is the first time this step is reached in the current invocation of this algorithm, <i>distribute the free space</i> in the flexbox line, then <i>fix max size violations</i>, then <i>fix min size violations</i>.</li>
959971

0 commit comments

Comments
 (0)