Take into account the intrinsic block size when computing the main size of a column flex container (#33135)

In particular, `main_content_sizes()` now works with columns.

`layout_for_block_content_size()` is now used for both intrinsic sizes
and intrinsic contributions, a IntrinsicSizingMode parameter is added
to choose the behavior.

Also, we consider the main size of a flex item as indefinite if its flex
basis is indefinite and the flex container has an indefinite main size.

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Oriol Brufau 2024-08-20 13:30:27 +02:00 committed by GitHub
parent cf98d8d7ec
commit c00cd1326a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 290 additions and 213 deletions

View file

@ -1,2 +0,0 @@
[align-content-wrap-004.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[auto-height-column-with-border-and-padding.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[auto-height-with-flex.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[box-sizing-001.html]
[.flexbox 7]
expected: FAIL

View file

@ -1,3 +0,0 @@
[box-sizing-min-max-sizes-001.html]
[.flexbox 2]
expected: FAIL

View file

@ -1,3 +0,0 @@
[change-column-flex-width.html]
[#container 1]
expected: FAIL

View file

@ -1,6 +0,0 @@
[column-flex-child-with-overflow-scroll.html]
[.flexbox 1]
expected: FAIL
[.flexbox 2]
expected: FAIL

View file

@ -1,3 +0,0 @@
[column-reverse-gap.html]
[.flexbox 1]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-basis-012.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-column-relayout-assert.html]
[.flexbox 1]
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-direction-column-overlap-001.html]
[#container 1]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-direction-column-reverse.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-direction-column.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-direction-with-element-insert.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-direction.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-height-min-content.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flex-minimum-height-flex-items-013.html]
expected: FAIL

View file

@ -1,13 +0,0 @@
[flex-minimum-height-flex-items-025.html]
[.outer-column-flexbox > div 3]
expected: FAIL
[.outer-column-flexbox > div 2]
expected: FAIL
[.outer-column-flexbox > div 1]
expected: FAIL
[.outer-column-flexbox > div 4]
expected: FAIL

View file

@ -1,12 +1,27 @@
[flex-one-sets-flex-basis-to-zero-px.html]
[.flexbox 4]
[.flexbox 10]
expected: FAIL
[.flexbox 5]
[.flexbox 11]
expected: FAIL
[.flexbox 6]
[.flexbox 12]
expected: FAIL
[.flexbox 2]
[.flexbox 13]
expected: FAIL
[.flexbox 14]
expected: FAIL
[.flexbox 15]
expected: FAIL
[.flexbox 16]
expected: FAIL
[.flexbox 17]
expected: FAIL
[.flexbox 18]
expected: FAIL

View file

@ -1,3 +0,0 @@
[flex-outer-flexbox-column-recalculate-height-on-resize-001.html]
[.OuterFlexbox 1]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox-definite-sizes-006.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_align-items-center-3.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_direction-column-reverse.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[flexbox_direction-column.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[gap-014.html]
expected: FAIL

View file

@ -1,4 +0,0 @@
[gap-017.html]
[.button 1]
expected: FAIL

View file

@ -1,2 +0,0 @@
[order-with-column-reverse.html]
expected: FAIL

View file

@ -1,3 +0,0 @@
[overflow-auto-008.html]
[hbox dimensions]
expected: FAIL

View file

@ -1,2 +0,0 @@
[percentage-heights-005.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[percentage-heights-008.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[stretching-orthogonal-flows.html]
expected: FAIL

View file

@ -1,2 +0,0 @@
[table-as-item-change-cell.html]
expected: FAIL