diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/relpos-block.txt b/Tests/LibWeb/Layout/expected/block-and-inline/relpos-block.txt
new file mode 100644
index 0000000000..311ee2a17f
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/relpos-block.txt
@@ -0,0 +1,13 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer at (2,2) content-size 796x62.9375 [BFC] children: not-inline
+ BlockContainer
at (12,12) content-size 600x42.9375 children: not-inline
+ BlockContainer at (14,14) content-size 200x17.46875 positioned 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 (24,25.46875) content-size 200x17.46875 positioned 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: [24,25.46875 53.171875x17.46875]
+ "athena"
+ TextNode <#text>
diff --git a/Tests/LibWeb/Layout/expected/block-and-inline/relpos-float.txt b/Tests/LibWeb/Layout/expected/block-and-inline/relpos-float.txt
new file mode 100644
index 0000000000..e50e4c5eeb
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/block-and-inline/relpos-float.txt
@@ -0,0 +1,13 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer at (2,2) content-size 796x31.46875 [BFC] children: not-inline
+ BlockContainer at (12,12) content-size 600x0 children: not-inline
+ BlockContainer at (14,14) content-size 200x17.46875 positioned floating [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 floating [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/block-and-inline/relpos-block.html b/Tests/LibWeb/Layout/input/block-and-inline/relpos-block.html
new file mode 100644
index 0000000000..0a927360a5
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/block-and-inline/relpos-block.html
@@ -0,0 +1,16 @@
+exekiller
athena
\ No newline at end of file
diff --git a/Tests/LibWeb/Layout/input/block-and-inline/relpos-float.html b/Tests/LibWeb/Layout/input/block-and-inline/relpos-float.html
new file mode 100644
index 0000000000..47ff9bcd59
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/block-and-inline/relpos-float.html
@@ -0,0 +1,17 @@
+exekiller
athena
\ No newline at end of file
diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
index 162aba7530..91e18f6b8e 100644
--- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.cpp
@@ -988,6 +988,8 @@ void BlockFormattingContext::layout_floating_box(Box const& box, BlockContainer
if (line_builder)
line_builder->recalculate_available_space();
+ compute_inset(box);
+
if (independent_formatting_context)
independent_formatting_context->parent_context_did_dimension_child_root_box();
}