LibWeb: Make sure we layout absolutely positioned children of FFC

This commit is contained in:
Andreas Kling 2022-06-21 20:17:28 +02:00
parent 5aeb6552f0
commit 85f2f8ab3f
Notes: sideshowbarker 2024-07-17 14:33:07 +09:00

View file

@ -138,6 +138,11 @@ void FlexFormattingContext::run(Box const& run_box, LayoutMode layout_mode)
// part of the spec, and simply covering up the fact that our inside layout currently
// mutates the height of BFC roots.
copy_dimensions_from_flex_items_to_boxes();
flex_container().for_each_child_of_type<Box>([&](Layout::Box& box) {
if (box.is_absolutely_positioned())
layout_absolutely_positioned_element(box);
});
}
void FlexFormattingContext::populate_specified_margins(FlexItem& item, CSS::FlexDirection flex_direction) const