mirror of
https://github.com/RGBCube/serenity
synced 2025-07-23 19:37:34 +00:00
LibWeb: Don't include abspos children in containing block's auto width
This commit is contained in:
parent
df22f38feb
commit
fb5879fdcc
2 changed files with 6 additions and 4 deletions
|
@ -807,8 +807,9 @@ float BlockFormattingContext::greatest_child_width(Box const& box)
|
||||||
max_width = max(max_width, width_here);
|
max_width = max(max_width, width_here);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
box.for_each_child_of_type<Box>([&](auto& child) {
|
box.for_each_child_of_type<Box>([&](Box const& child) {
|
||||||
max_width = max(max_width, m_state.get(child).border_box_width());
|
if (!child.is_absolutely_positioned())
|
||||||
|
max_width = max(max_width, m_state.get(child).border_box_width());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return max_width;
|
return max_width;
|
||||||
|
|
|
@ -189,8 +189,9 @@ float FormattingContext::greatest_child_width(Box const& box)
|
||||||
max_width = max(max_width, line_box.width());
|
max_width = max(max_width, line_box.width());
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
box.for_each_child_of_type<Box>([&](auto& child) {
|
box.for_each_child_of_type<Box>([&](Box const& child) {
|
||||||
max_width = max(max_width, m_state.get(child).border_box_width());
|
if (!child.is_absolutely_positioned())
|
||||||
|
max_width = max(max_width, m_state.get(child).border_box_width());
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
return max_width;
|
return max_width;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue