diff --git a/Tests/LibWeb/Layout/expected/flex/relpos-flex-item.txt b/Tests/LibWeb/Layout/expected/flex/relpos-flex-item.txt
new file mode 100644
index 0000000000..b6944dc527
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/flex/relpos-flex-item.txt
@@ -0,0 +1,13 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer at (2,2) content-size 796x41.46875 [BFC] children: not-inline
+ Box
at (12,12) content-size 600x21.46875 flex-container(row) [FFC] children: not-inline
+ BlockContainer at (14,14) content-size 200x17.46875 positioned flex-item [BFC] children: inline
+ line 0 width: 65.4375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
+ frag 0 from TextNode start: 0, length: 9, rect: [14,14 65.4375x17.46875]
+ "exekiller"
+ TextNode <#text>
+ BlockContainer at (18,18) content-size 200x17.46875 positioned flex-item [BFC] children: inline
+ line 0 width: 53.171875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
+ frag 0 from TextNode start: 0, length: 6, rect: [18,18 53.171875x17.46875]
+ "athena"
+ TextNode <#text>
diff --git a/Tests/LibWeb/Layout/input/flex/relpos-flex-item.html b/Tests/LibWeb/Layout/input/flex/relpos-flex-item.html
new file mode 100644
index 0000000000..aac74ac57d
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/flex/relpos-flex-item.html
@@ -0,0 +1,19 @@
+exekiller
athena
\ No newline at end of file
diff --git a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
index 021b936270..fc0c5f52e5 100644
--- a/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FlexFormattingContext.cpp
@@ -216,6 +216,8 @@ void FlexFormattingContext::run(Box const& run_box, LayoutMode, AvailableSpace c
auto& box_state = m_state.get(item.box);
if (auto independent_formatting_context = layout_inside(item.box, LayoutMode::Normal, box_state.available_inner_space_or_constraints_from(m_available_space_for_flex_container->space)))
independent_formatting_context->parent_context_did_dimension_child_root_box();
+
+ compute_inset(item.box);
}
}
}