diff --git a/Tests/LibWeb/Layout/expected/flex/flex-item-min-width-fit-content.txt b/Tests/LibWeb/Layout/expected/flex/flex-item-min-width-fit-content.txt
new file mode 100644
index 0000000000..3f071beec2
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/flex/flex-item-min-width-fit-content.txt
@@ -0,0 +1,22 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer at (1,1) content-size 798x70 [BFC] children: not-inline
+ Box
at (10,10) content-size 500x52 flex-container(row) [FFC] children: not-inline
+ BlockContainer <(anonymous)> (not painted) [BFC] children: inline
+ TextNode <#text>
+ BlockContainer at (11,11) content-size 381.625x50 flex-item [BFC] children: not-inline
+ BlockContainer <(anonymous)> (not painted) [BFC] children: inline
+ TextNode <#text>
+ BlockContainer at (394.625,11) content-size 114.375x50 flex-item [BFC] children: inline
+ line 0 width: 114.375, height: 19.46875, bottom: 19.46875, baseline: 14.53125
+ frag 0 from BlockContainer start: 0, length: 0, rect: [395.625,12 57.046875x17.46875]
+ frag 1 from BlockContainer start: 0, length: 0, rect: [454.625,12 53.328125x17.46875]
+ BlockContainer at (395.625,12) content-size 57.046875x17.46875 inline-block [BFC] children: inline
+ line 0 width: 57.046875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
+ frag 0 from TextNode start: 0, length: 6, rect: [395.625,12 57.046875x17.46875]
+ "Accept"
+ TextNode <#text>
+ BlockContainer at (454.625,12) content-size 53.328125x17.46875 inline-block [BFC] children: inline
+ line 0 width: 53.328125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
+ frag 0 from TextNode start: 0, length: 6, rect: [454.625,12 53.328125x17.46875]
+ "Reject"
+ TextNode <#text>
diff --git a/Tests/LibWeb/Layout/input/flex/flex-item-min-width-fit-content.html b/Tests/LibWeb/Layout/input/flex/flex-item-min-width-fit-content.html
new file mode 100644
index 0000000000..cd2b46eeab
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/flex/flex-item-min-width-fit-content.html
@@ -0,0 +1,24 @@
+
+
+