mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Fix size of tables in flow layout (#31455)
* Fix size of tables in flow layout The contents of a table can make it bigger than what we would expect from its 'width', 'min-width', 'height' and ' min-height' properties. Also, 'width: auto' doesn't stretch it to fill the containing block. We had to refactor the resolution of margins to happen after layout, otherwise 'auto' margins wouldn't align correctly. Co-authored-by: Martin Robinson <mrobinson@igalia.com> * Feedback * Consistently use `containing_block_for_table` in table layout * Update test result --------- Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
c23999941a
commit
50fdb82246
54 changed files with 289 additions and 388 deletions
|
@ -410,6 +410,7 @@ impl FlexContainer {
|
|||
IndependentLayout {
|
||||
fragments,
|
||||
content_block_size: content_block_size.into(),
|
||||
content_inline_size_for_table: None,
|
||||
baselines: Baselines::default(),
|
||||
}
|
||||
}
|
||||
|
@ -1108,6 +1109,7 @@ impl<'a> FlexItem<'a> {
|
|||
flex_context.layout_context,
|
||||
&mut positioning_context,
|
||||
&item_as_containing_block,
|
||||
&flex_context.containing_block,
|
||||
);
|
||||
|
||||
let hypothetical_cross_size = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue