diff options
author | Oriol Brufau <obrufau@igalia.com> | 2024-12-20 06:04:56 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-20 14:04:56 +0000 |
commit | 65c65c9a6aafbae16e694814e198c8744cc0e567 (patch) | |
tree | 530d153320813c94078d9574935583aab839a142 /components/layout_2020/flow/mod.rs | |
parent | 915901bdec4b15e2f9023db3e62c9020bc7479a7 (diff) | |
download | servo-65c65c9a6aafbae16e694814e198c8744cc0e567.tar.gz servo-65c65c9a6aafbae16e694814e198c8744cc0e567.zip |
layout: Fix intrinsic contributions of tables (#34696)
If a table element had e.g. `width: 0px`, we were assuming that this was
its intrinsic min-content and max-content contributions.
However, tables are always at least as big as its min-content size, so
this patch floors the intrinsic contributions by that amount.
Signed-off-by: Oriol Brufau <obrufau@igalia.com>
Diffstat (limited to 'components/layout_2020/flow/mod.rs')
-rw-r--r-- | components/layout_2020/flow/mod.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/layout_2020/flow/mod.rs b/components/layout_2020/flow/mod.rs index e94301391e2..745f7b57e73 100644 --- a/components/layout_2020/flow/mod.rs +++ b/components/layout_2020/flow/mod.rs @@ -411,6 +411,7 @@ fn compute_inline_content_sizes_for_block_level_boxes( containing_block, &LogicalVec2::zero(), false, /* auto_block_size_stretches_to_containing_block */ + false, /* is_table */ |_| None, /* TODO: support preferred aspect ratios on non-replaced boxes */ |constraint_space| { base.inline_content_sizes(layout_context, constraint_space, contents) |