From 8653903beec8e166765c587e2f50c9beb1add456 Mon Sep 17 00:00:00 2001 From: martinfalisse Date: Sat, 15 Oct 2022 13:26:12 +0200 Subject: [PATCH] Base: Update display grid test page Update the tests after adding minmax(), auto-fill and auto-fit functionality to the LibWeb implementation of the CSS Grid. --- Base/res/html/misc/display-grid.html | 107 +++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) diff --git a/Base/res/html/misc/display-grid.html b/Base/res/html/misc/display-grid.html index c9c4d0f259..8dd6237c25 100644 --- a/Base/res/html/misc/display-grid.html +++ b/Base/res/html/misc/display-grid.html @@ -74,6 +74,11 @@
1
+ +
+

End of crash tests

@@ -121,3 +126,105 @@
5
6
+ + +

Should render 2 items with no grid formatting (one on top of the other) +

+
1
+
2
+
+ + +

Should render 2 items with no grid formatting (one on top of the other) +

+
1
+
2
+
+ + +

Basic minmax(): Should render 2 items side by side, each with a minimum width of 150px, If there is enough space, +they will expand up to 300px each.

+
+
1
+
2
+
+ + +

Since there is no vertical limit, the two rows should be 50px high each.

+
+
1
+
2
+
+ + +

Since there is a height limit, the rows should be 25px high each.

+
+
1
+
2
+
2
+
2
+
+ + +

3 columns with minimum 200px and maximum 100%.

+
+
1
+
2
+
3
+
+ + +

Auto-fill of minimum 250px, max 1fr

+
+
1
+
2
+
3
+
+ + +

Auto-fit of minimum 250px, max 1fr

+
+
1
+
2
+
3
+
+ + +

Article layout: small margins on mobile, large on desktop. Centered column with 70ch width maximum

+
+
1
+
Article content
+
3
+