Skip to content

Commit 3583171

Browse files
committed
[css3-flexbox] Make the line-wrapping algorithm clearer in the presence of negative-size items.
--HG-- extra : rebase_source : f22fcfe1da88181d86878395024e94a0d24514a4
1 parent b7b44d7 commit 3583171

2 files changed

Lines changed: 14 additions & 10 deletions

File tree

css3-flexbox/Overview.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3191,11 +3191,13 @@ <h3 id=main-sizing><span class=secno>9.3. </span> Main Size Determination</h3>
31913191
href="#single-line"><i>single-line</i></a>, collect all the flex items
31923192
into a single flex line.
31933193

3194-
<li> Otherwise, starting from the first uncollected item, collect as
3195-
many consecutive flex items as will fit or until a forced break is
3196-
encountered (but collect at least one) into the flex container's inner
3197-
main size into a flex line. A break is forced wherever the CSS2.1
3198-
<code class=css>page-break-before/after</code><a href="#CSS21"
3194+
<li> Otherwise, starting from the first uncollected item, collect
3195+
consecutive items one by one until the first time that the
3196+
<em>next</em> collected item would not fit into the flex container's
3197+
inner main size, or until a forced break is encountered. If the very
3198+
first uncollected item wouldn't fit, collect just it into the line. A
3199+
break is forced wherever the CSS2.1 ‘<code
3200+
class=css>page-break-before/after</code><a href="#CSS21"
31993201
rel=biblioentry>[CSS21]<!--{{CSS21}}--></a> or the CSS3 ‘<code
32003202
class=css>break-before/after</code><a href="#CSS3-BREAK"
32013203
rel=biblioentry>[CSS3-BREAK]<!--{{CSS3-BREAK}}--></a> properties

css3-flexbox/Overview.src.html

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2464,11 +2464,13 @@ <h3 id='main-sizing'>
24642464

24652465
<li>
24662466
Otherwise,
2467-
starting from the first uncollected item,
2468-
collect as many consecutive flex items as will fit
2469-
or until a forced break is encountered
2470-
(but collect at least one)
2471-
into the flex container's inner main size into a flex line.
2467+
starting from the first uncollected item,
2468+
collect consecutive items one by one
2469+
until the first time that the <em>next</em> collected item
2470+
would not fit into the flex container's inner main size,
2471+
or until a forced break is encountered.
2472+
If the very first uncollected item wouldn't fit,
2473+
collect just it into the line.
24722474
A break is forced wherever
24732475
the CSS2.1 'page-break-before/after' [[CSS21]]
24742476
or the CSS3 'break-before/after' [[CSS3-BREAK]] properties

0 commit comments

Comments
 (0)