diff --git a/Tests/LibWeb/Layout/expected/inline-size.txt b/Tests/LibWeb/Layout/expected/inline-size.txt
new file mode 100644
index 0000000000..dc1a892429
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/inline-size.txt
@@ -0,0 +1,20 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer at (0,0) content-size 800x570.851562 [BFC] children: not-inline
+ BlockContainer
at (8,70) content-size 784x492.851562 children: not-inline
+ BlockContainer at (8,70) content-size 784x200 children: inline
+ line 0 width: 85.859375, height: 76.425781, bottom: 76.425781, baseline: 59.199218
+ frag 0 from TextNode start: 0, length: 2, rect: [8,70 85.859375x76.425781]
+ "KK"
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (8,340) content-size 784x76.425781 children: inline
+ line 0 width: 0, height: 76.425781, bottom: 76.425781, baseline: 59.199218
+ TextNode <#text>
+ BreakNode
+ TextNode <#text>
+ BlockContainer at (8,486.425781) content-size 100x76.425781 children: inline
+ line 0 width: 85.859375, height: 76.425781, bottom: 76.425781, baseline: 59.199218
+ frag 0 from TextNode start: 0, length: 2, rect: [8,486.425781 85.859375x76.425781]
+ "KK"
+ TextNode <#text>
+ BlockContainer <(anonymous)> at (8,632.851562) content-size 784x0 children: inline
+ TextNode <#text>
diff --git a/Tests/LibWeb/Layout/input/inline-size.html b/Tests/LibWeb/Layout/input/inline-size.html
new file mode 100644
index 0000000000..d81253bac5
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/inline-size.html
@@ -0,0 +1,25 @@
+
+
+KK
+
+KK