Skip to content

Commit cbc1bd8

Browse files
committed
[css-flexbox-2] Catch the error case where a single overflowing item is followed by a zero-size item.
1 parent 172ed3c commit cbc1bd8

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

css-flexbox-2/Overview.bs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4182,13 +4182,15 @@ Balancing Flex Items</h3>
41824182
into exactly |line count| numbers of contiguous sequences,
41834183
under the following conditions:
41844184

4185+
* At least one [=flex item=] is assigned to each sequence.
41854186
* The sum of the [=flex item=] sizes
41864187
of all the [=flex items=] in the sequence
41874188
(the |line size|)
4188-
do not exceed the [=inner size|inner=] [=main size=] of the [=flex container=].
4189-
* At least one [=flex item=] is assigned to each sequence.
4189+
do not exceed the [=inner size|inner=] [=main size=] of the [=flex container=]
4190+
(unless it's a single overflowing item).
41904191
* If a [=flex item's=] size is zero,
4191-
and it could be assigned either to the end of a preceding sequence
4192+
the preceding sequence was not overflowing,
4193+
and it could be assigned either to the end of the preceding sequence
41924194
or the beginning of the next sequence,
41934195
it is assigned to the end of the preceding sequence.
41944196
* Calling the difference between the |line size|

0 commit comments

Comments
 (0)