diff --git a/Tests/LibWeb/Layout/expected/grid/float-container-columns-1fr-1fr.txt b/Tests/LibWeb/Layout/expected/grid/float-container-columns-1fr-1fr.txt
new file mode 100644
index 0000000000..b04cec661f
--- /dev/null
+++ b/Tests/LibWeb/Layout/expected/grid/float-container-columns-1fr-1fr.txt
@@ -0,0 +1,24 @@
+Viewport <#document> at (0,0) content-size 800x600 children: not-inline
+ BlockContainer at (0,0) content-size 800x600 [BFC] children: not-inline
+ BlockContainer
at (8,8) content-size 784x0 children: not-inline
+ Box at (8,8) content-size 186.53125x34.9375 floating [GFC] children: not-inline
+ BlockContainer at (8,8) content-size 101.640625x17.46875 [BFC] children: inline
+ line 0 width: 79.25, height: 17.46875, bottom: 17.46875, baseline: 13.53125
+ frag 0 from TextNode start: 0, length: 9, rect: [8,8 79.25x17.46875]
+ "some-text"
+ TextNode <#text>
+ BlockContainer at (109.640625,8) content-size 84.890625x17.46875 [BFC] children: inline
+ line 0 width: 78.03125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
+ frag 0 from TextNode start: 0, length: 9, rect: [109.640625,8 78.03125x17.46875]
+ "goes-here"
+ TextNode <#text>
+ BlockContainer at (8,25.46875) content-size 101.640625x17.46875 [BFC] children: inline
+ line 0 width: 101.640625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
+ frag 0 from TextNode start: 0, length: 12, rect: [8,25.46875 101.640625x17.46875]
+ "another-text"
+ TextNode <#text>
+ BlockContainer at (109.640625,25.46875) content-size 84.890625x17.46875 [BFC] children: inline
+ line 0 width: 84.890625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
+ frag 0 from TextNode start: 0, length: 10, rect: [109.640625,25.46875 84.890625x17.46875]
+ "goes-there"
+ TextNode <#text>
diff --git a/Tests/LibWeb/Layout/input/grid/float-container-columns-1fr-1fr.html b/Tests/LibWeb/Layout/input/grid/float-container-columns-1fr-1fr.html
new file mode 100644
index 0000000000..9076eabca5
--- /dev/null
+++ b/Tests/LibWeb/Layout/input/grid/float-container-columns-1fr-1fr.html
@@ -0,0 +1,13 @@
+
+some-text
goes-here
another-text
goes-there
\ No newline at end of file
diff --git a/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp b/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp
index 8c45f0aea1..023cb9d39e 100644
--- a/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp
+++ b/Userland/Libraries/LibWeb/Layout/GridFormattingContext.cpp
@@ -870,8 +870,10 @@ void GridFormattingContext::resolve_intrinsic_track_sizes(AvailableSpace const&
void GridFormattingContext::distribute_extra_space_across_spanned_tracks(CSSPixels item_size_contribution, Vector& spanned_tracks)
{
- for (auto& track : spanned_tracks)
+ for (auto& track : spanned_tracks) {
track.planned_increase = 0;
+ track.item_incurred_increase = 0;
+ }
// 1. Find the space to distribute:
CSSPixels spanned_tracks_sizes_sum = 0;