@@ -1900,7 +1900,7 @@ <h2 id=layout-algorithm><span class=secno>9. </span> Flexbox Layout
19001900 < p > In column-direction flexbox, shrink-to-fit size of a flex item
19011901 along the main axis is the extent in block direction that it gets
19021902 when laid out using its 'fit-content' as its size in inline
1903- direction, using cross-size of flexbox content box as available
1903+ direction and using cross-size of flexbox content box as available
19041904 measure, also as defined in < a href ="#CSS3-WRITING-MODES "
19051905 rel =biblioentry > [CSS3-WRITING-MODES]<!--{{!CSS3-WRITING-MODES}}--> </ a > .
19061906 </ p >
@@ -1947,9 +1947,9 @@ <h2 id=layout-algorithm><span class=secno>9. </span> Flexbox Layout
19471947 </ ul >
19481948
19491949 < li > Collect as many consecutive flexbox items as possible, starting from
1950- the first item, while keeping the sum of their main size smaller than
1951- the flexbox's available space. If a flexbox item is sized with a
1952- flexible length, then for the purpose of this step, clamp the item's
1950+ the first item, while keeping the sum of their margin-box main size
1951+ smaller than the flexbox's available space. If a flexbox item is sized
1952+ with a flexible length, then for the purpose of this step, clamp its
19531953 size between its minimum and maximum main sizes. The items so collected
19541954 form a single flexbox line.
19551955
@@ -2056,8 +2056,7 @@ <h2 id=layout-algorithm><span class=secno>9. </span> Flexbox Layout
20562056 < li > Layout all items again in their final size and position.
20572057 Implementations can determine when this step is needed and how it can be
20582058 optimized, but for precise results it has to be assumed that this step is
2059- performed, because the layout of each item's content may change when
2060- ea
2059+ performed.
20612060 </ ol >
20622061
20632062 < p > To < dfn id =resolve-the-flexible-lengths > resolve the flexible
@@ -2066,18 +2065,20 @@ <h2 id=layout-algorithm><span class=secno>9. </span> Flexbox Layout
20662065 < ol >
20672066 < li > Determine sign of flexibility
20682067 < ol >
2069- < li > Add sizes of all items, < i > adjusted for min/max</ i > .
2068+ < li > Add margin-box hypothetical main sizes of all items, < i > adjusted for
2069+ min/max</ i > .
20702070
2071- < li > If sum of preferred sizes is less than available space, use positive
2072- flexibility, otherwise use negative flexibility.
2071+ < li > If the sum is less than available space, use positive flexibility,
2072+ otherwise use negative flexibility.
20732073 </ ol >
20742074
20752075 < p > for the rest of the algorithm use flexibility with the sign determined
20762076 in this step</ p >
20772077
20782078 < li > Reset all flexible sizes to their preferred size
20792079
2080- < li > Find free space by subtracting sum of item sizes from available space.
2080+ < li > Find free space by subtracting sum of margin-box main sizes of flexbox
2081+ items from available space.
20812082
20822083 < li > Distribute free space proportional to flex:
20832084 < ol >
@@ -2194,16 +2195,16 @@ <h2 id=pagination><span class=secno>10. </span> Page breaks in flexbox</h2>
21942195 < li >
21952196 < p > If flexbox main-axis size is definite, flexbox algorithm must be run
21962197 first, without constraints of available space on page and using all
2197- content of the flexbox. Otherwise items use the preferred size,
2198- adjusted for min/max.</ p >
2198+ content of the flexbox. Otherwise flexbox items use the preferred
2199+ size, adjusted for min/max.</ p >
21992200
22002201 < p > If page size varies and flexbox size depends on page size, this step
22012202 has to be repeated on each page, again with the whole content of the
22022203 flexbox.</ p >
22032204
22042205 < li > Set of items that will fit on current page is determined by adding
2205- main-axis sizes of items until total size exceeds available space or a
2206- forced break is encountered.
2206+ main-axis margin-box sizes of flexbox items until total size exceeds
2207+ available space or a forced break is encountered.
22072208
22082209 < li > If border box of an item doesn’t fit in available space, a break
22092210 inside the item is considered
@@ -2262,9 +2263,9 @@ <h2 id=pagination><span class=secno>10. </span> Page breaks in flexbox</h2>
22622263 < p > If page size varies and flexbox size depends on page size, this step
22632264 needs to be repeated on each page.</ p >
22642265
2265- < li > Items are sized and positioned as usual, but in block-direction
2266- available space of min(remaining available space in flexbox, remaining
2267- space on the page).
2266+ < li > Flexbox items are sized and positioned as usual, but in
2267+ block-direction available space of min(remaining available space in
2268+ flexbox, remaining space on the page).
22682269
22692270 < li > Any items with baseline alignment must be aligned before considering
22702271 breaks inside items.
@@ -2284,9 +2285,9 @@ <h2 id=pagination><span class=secno>10. </span> Page breaks in flexbox</h2>
22842285 used.
22852286
22862287 < li > If an item is broken in the previous step and its alignment is not
2287- baseline, its cross-axis size is set to available space. If item
2288- alignment is baseline, its cross-axis size is adjusted so that it
2289- extends to exactly the end of available space.
2288+ baseline, its cross-axis margin-box size is set to available space.
2289+ If item alignment is baseline, its cross-axis size is adjusted so
2290+ that it extends to exactly the end of available space.
22902291 </ ol >
22912292 </ ol >
22922293
0 commit comments