From 85f2f8ab3fc71f0cd26534c74d96def7cdf46691 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 21 Jun 2022 20:17:28 +0200 Subject: [PATCH] LibWeb: Make sure we layout absolutely positioned children of FFC --- Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp index 5adb2fbcfa..d0ca777890 100644 --- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp +++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp @@ -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([&](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