.box) [0,10 202x72.28125]
+ PaintableWithLines (BlockContainer(anonymous)) [1,11 200x70.28125]
+ TextPaintable (TextNode<#text>)
diff --git a/Tests/LibWeb/Layout/input/block-and-inline/abspos-grid-with-definite-width.html b/Tests/LibWeb/Layout/input/block-and-inline/abspos-grid-with-definite-width.html
new file mode 100644
index 0000000000..58bd1101e4
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/block-and-inline/abspos-grid-with-definite-width.html
@@ -0,0 +1,12 @@
+
Giveaways in Channels and Free Premium Giveaways in Channels and Free Premium
\ No newline at end of file
diff --git a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
index 68ab410939..cebfe0740d 100644
--- a/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/FormattingContext.cpp
@@ -317,7 +317,7 @@ Optional
FormattingContext::compute_auto_height_for_absolutely_positi
// NOTE: For anything else, we use the fit-content height.
// This should eventually be replaced by the new absolute positioning model:
// https://www.w3.org/TR/css-position-3/#abspos-layout
- return calculate_fit_content_height(box, available_space);
+ return calculate_fit_content_height(box, m_state.get(box).available_inner_space_or_constraints_from(available_space));
}
// https://www.w3.org/TR/CSS22/visudet.html#root-height