mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix intrinsic sizing of column flex containers (#33299)
From https://drafts.csswg.org/css-flexbox-1/#intrinsic-cross-sizes, > The min-content/max-content cross size of a single-line flex container > is the largest min-content contribution/max-content contribution > (respectively) of its flex items. We were using the min/max-content size instead of the min/max-content contribution. Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
e43e477842
commit
27d87f104e
15 changed files with 3 additions and 63 deletions
|
@ -361,13 +361,11 @@ impl FlexContainer {
|
|||
// columns, and sum the column sizes and gaps.
|
||||
// TODO: Use the proper automatic minimum size.
|
||||
let ifc = &mut item.independent_formatting_context;
|
||||
content_sizes.max_assign(ifc.inline_content_sizes(
|
||||
content_sizes.max_assign(ifc.outer_inline_content_sizes(
|
||||
layout_context,
|
||||
&containing_block_for_children.new_for_intrinsic_inline_size_of_child(
|
||||
&ifc.style().clone(),
|
||||
&LogicalVec2::zero(),
|
||||
),
|
||||
containing_block_for_children,
|
||||
&LogicalVec2::zero(),
|
||||
false, /* auto_block_size_stretches_to_containing_block */
|
||||
));
|
||||
},
|
||||
FlexLevelBox::OutOfFlowAbsolutelyPositionedBox(_) => {},
|
||||
|
|
|
@ -5,12 +5,6 @@
|
|||
[.inline-flex 6]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flex 3]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flex 7]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flex 1]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[flexbox-justify-content-vert-001a.xhtml]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[flexbox-justify-content-vert-002.xhtml]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[flexbox-justify-content-vert-003.xhtml]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[flexbox-justify-content-vert-004.xhtml]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[flexbox-min-height-auto-001.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[flexbox-min-height-auto-002a.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[flexbox-min-height-auto-002b.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[flexbox-min-height-auto-002c.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[flexbox-min-height-auto-003.html]
|
||||
expected: FAIL
|
|
@ -1,2 +0,0 @@
|
|||
[flexbox-min-height-auto-004.html]
|
||||
expected: FAIL
|
|
@ -1,16 +1,10 @@
|
|||
[inline-flexbox-wrap-vertically-width-calculation.html]
|
||||
[.inline-flexbox 13]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 12]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 11]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 10]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 16]
|
||||
expected: FAIL
|
||||
|
||||
|
@ -23,26 +17,14 @@
|
|||
[.inline-flexbox 3]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 2]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 7]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 6]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 5]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 4]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 8]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 1]
|
||||
expected: FAIL
|
||||
|
||||
[.inline-flexbox 9]
|
||||
expected: FAIL
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
[multiline-shrink-to-fit.html]
|
||||
expected: FAIL
|
|
@ -1,12 +0,0 @@
|
|||
[overflow-auto-006.html]
|
||||
[.flexbox, .inline-flexbox 7]
|
||||
expected: FAIL
|
||||
|
||||
[.flexbox, .inline-flexbox 8]
|
||||
expected: FAIL
|
||||
|
||||
[.flexbox, .inline-flexbox 9]
|
||||
expected: FAIL
|
||||
|
||||
[.flexbox, .inline-flexbox 10]
|
||||
expected: FAIL
|
Loading…
Add table
Add a link
Reference in a new issue