layout: Initial implementation of flex-direction: column and column-reverse (#33031)

This change removes restrictions on using the column layout mode of
flexbox and adds an initial implementation of sizing for that flex
direction. There's a lot of missing pieces still, but in some cases this
does render column flexbox.

In particular, there are now two code paths for preferred widths
(intrinsic size) calcuation: one in the main axis (row) and one in
the cross axis (column) corresponding to the flex direciton with
horizontal writing modes.

In addition, `FlexItemBox::inline_content_sizes` is removed in favor of
making `sizing::outer_inline` /
`IndependentFormattingContext::outer_inline_content_sizes` generic
enough to handle using a different value for auto minimum sizes, which
flexbox needs.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Martin Robinson 2024-08-14 16:25:09 +02:00 committed by GitHub
parent c059bab6f4
commit 7633bdccd2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
124 changed files with 541 additions and 605 deletions

View file

@ -13,6 +13,3 @@
[#target > div 6]
expected: FAIL
[#target > div 4]
expected: FAIL

View file

@ -1,3 +1,9 @@
[flex-align-baseline-006.html]
[#target > div 3]
expected: FAIL
[#target > div 1]
expected: FAIL
[#target > div 2]
expected: FAIL

View file

@ -1,3 +1,9 @@
[flex-align-baseline-007.html]
[#target > div 3]
expected: FAIL
[#target > div 1]
expected: FAIL
[#target > div 2]
expected: FAIL

View file

@ -49,3 +49,9 @@
[.target > * 25]
expected: FAIL
[.target > * 43]
expected: FAIL
[.target > * 47]
expected: FAIL