mirror of
https://github.com/servo/servo.git
synced 2025-08-09 23:45:35 +01:00
layout: Obey intrinsic min/max block sizes on flex containers (#36973)
Intrinsic sizing keywords weren't working correctly on the min and max block sizes of a flex container, because we weren't setting the `CacheableLayoutResult::content_block_size` to the right value. This also ensures that `align-content` aligns within the final size of the container. Note it's not very clear what to do for single-line containers, they are being discussed in https://github.com/w3c/csswg-drafts/issues/12123 Testing: Adding new WPT tests. There are still some failures, but most subtests would fail without this change. Fixes: #36981 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
103cbed928
commit
cd0dbb9afb
7 changed files with 401 additions and 22 deletions
12
tests/wpt/meta/css/css-flexbox/flex-container-max-content-002.tentative.html.ini
vendored
Normal file
12
tests/wpt/meta/css/css-flexbox/flex-container-max-content-002.tentative.html.ini
vendored
Normal file
|
@ -0,0 +1,12 @@
|
|||
[flex-container-max-content-002.tentative.html]
|
||||
[.flex 2]
|
||||
expected: FAIL
|
||||
|
||||
[.flex 3]
|
||||
expected: FAIL
|
||||
|
||||
[.flex 5]
|
||||
expected: FAIL
|
||||
|
||||
[.flex 6]
|
||||
expected: FAIL
|
21
tests/wpt/meta/css/css-flexbox/flex-container-min-content-002.tentative.html.ini
vendored
Normal file
21
tests/wpt/meta/css/css-flexbox/flex-container-min-content-002.tentative.html.ini
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
[flex-container-min-content-002.tentative.html]
|
||||
[.flex 2]
|
||||
expected: FAIL
|
||||
|
||||
[.flex 3]
|
||||
expected: FAIL
|
||||
|
||||
[.flex 5]
|
||||
expected: FAIL
|
||||
|
||||
[.flex 6]
|
||||
expected: FAIL
|
||||
|
||||
[.flex 13]
|
||||
expected: FAIL
|
||||
|
||||
[.flex 14]
|
||||
expected: FAIL
|
||||
|
||||
[.flex 15]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue