From e537035cc6f89809521d44a10797c63a1c4800f5 Mon Sep 17 00:00:00 2001 From: martinfalisse Date: Sat, 8 Oct 2022 14:46:21 +0200 Subject: [PATCH] LibWeb+Base: Deal with column-spans greater than implicit grid When the indicated column-span is greater than the implicit grid (like in cases when the grid has the default size of 1x1, and the column is supposed to span any number greater than that), then previously were crashing. --- Base/res/html/misc/display-grid.html | 23 ++++++++++++++++--- .../LibWeb/Layout/GridFormattingContext.cpp | 17 ++++++++++---- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/Base/res/html/misc/display-grid.html b/Base/res/html/misc/display-grid.html index fcf9c9d116..fb79d6a053 100644 --- a/Base/res/html/misc/display-grid.html +++ b/Base/res/html/misc/display-grid.html @@ -30,8 +30,8 @@
4
+

Start of crash tests

-

If you can see this message then the test passed.

1
2
@@ -50,7 +49,6 @@
-

If you can see this message then the test passed.

2
3
@@ -60,6 +58,25 @@
6
+ +
+
1
+
+ +
+
1
+
+ +
+
1
+
+ +
+
1
+
+ +

End of crash tests

+

Should render a 2x2 grid with columns 50px and 50%