mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-01 06:07:59 +00:00
LibWeb: Don't include abspos children in containing block's auto width
This commit is contained in:
@@ -807,8 +807,9 @@ float BlockFormattingContext::greatest_child_width(Box const& box)
|
||||
max_width = max(max_width, width_here);
|
||||
}
|
||||
} else {
|
||||
box.for_each_child_of_type<Box>([&](auto& child) {
|
||||
max_width = max(max_width, m_state.get(child).border_box_width());
|
||||
box.for_each_child_of_type<Box>([&](Box const& child) {
|
||||
if (!child.is_absolutely_positioned())
|
||||
max_width = max(max_width, m_state.get(child).border_box_width());
|
||||
});
|
||||
}
|
||||
return max_width;
|
||||
|
||||
Reference in New Issue
Block a user