mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Properly size absolutely positioned tables (#32447)
Co-authored-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
764021751d
commit
674edb4df0
7 changed files with 15 additions and 60 deletions
|
@ -630,7 +630,19 @@ impl HoistedAbsolutelyPositionedBox {
|
|||
&containing_block_for_children,
|
||||
&containing_block.into(),
|
||||
);
|
||||
let block_size = size.auto_is(|| independent_layout.content_block_size);
|
||||
|
||||
let (block_size, inline_size) =
|
||||
match independent_layout.content_inline_size_for_table {
|
||||
Some(inline_size) => (
|
||||
independent_layout.content_block_size.into(),
|
||||
inline_size.into(),
|
||||
),
|
||||
None => (
|
||||
size.auto_is(|| independent_layout.content_block_size),
|
||||
inline_size,
|
||||
),
|
||||
};
|
||||
|
||||
Result {
|
||||
content_size: LogicalVec2 {
|
||||
inline: inline_size,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue