diff --git a/Tests/LibWeb/Layout/expected/table/abspos-pseudo-element-inside-table.txt b/Tests/LibWeb/Layout/expected/table/abspos-pseudo-element-inside-table.txt
new file mode 100644
index 00000000000..0d167dbccb5
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/table/abspos-pseudo-element-inside-table.txt
@@ -0,0 +1,18 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer at (0,0) content-size 800x20 [BFC] children: not-inline
+ BlockContainer
at (8,8) content-size 784x4 children: not-inline
+ TableWrapper <(anonymous)> at (8,8) content-size 784x4 [BFC] children: not-inline
+ Box at (8,8) content-size 784x4 table-box [TFC] children: not-inline
+ Box at (8,8) content-size 0x0 table-header-group children: not-inline
+ Box at (10,10) content-size 0x0 table-row children: not-inline
+ BlockContainer <(anonymous)> at (0,590) content-size 800x10 positioned [BFC] children: inline
+ TextNode <#text>
+
+ViewportPaintable (Viewport<#document>) [0,0 800x600]
+ PaintableWithLines (BlockContainer) [0,0 800x20] overflow: [0,0 800x600]
+ PaintableWithLines (BlockContainer) [8,8 784x4] overflow: [0,8 800x592]
+ PaintableWithLines (TableWrapper(anonymous)) [8,8 784x4] overflow: [0,8 800x592]
+ PaintableBox (Box) [8,8 784x4] overflow: [0,8 800x592]
+ PaintableBox (Box) [8,8 0x0] overflow: [0,10 800x590]
+ PaintableBox (Box) [10,10 0x0] overflow: [0,590 800x10]
+ PaintableWithLines (BlockContainer(anonymous)) [0,590 800x10]
diff --git a/Tests/LibWeb/Layout/input/table/abspos-pseudo-element-inside-table.html b/Tests/LibWeb/Layout/input/table/abspos-pseudo-element-inside-table.html
new file mode 100644
index 00000000000..702e671f536
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/table/abspos-pseudo-element-inside-table.html
@@ -0,0 +1,21 @@
+
\ No newline at end of file
diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
index 8c7e593e0aa..b4cbec91b6c 100644
--- a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
@@ -152,7 +152,6 @@ Optional FormattingContext::formatting_context_type_cre
// FIXME: We need this for