Skip to content

The headless browser for AI agents and web scraping

test: gate responsive grid geometry

SGavrlacc4422f484f
diff --git a/render-repros/checks.json b/render-repros/checks.json
index ba89ffa0..a45d6d4e 100644
--- a/render-repros/checks.json
+++ b/render-repros/checks.json
@@ -35,6 +35,14 @@
{"name": "float", "color": "#88bbdd", "width": 120, "height": 80},
{"name": "cleared block", "color": "#ffcc66", "width": 500, "height": 40}
],
+ "grid-auto-repeat": [
+ {"name": "auto-fill creates all fitting tracks", "color": "#087f5b", "width": 210, "height": 60, "count": 4},
+ {"name": "auto-fit collapses empty tracks", "color": "#1971c2", "width": 287, "height": 60, "count": 3}
+ ],
+ "grid-shorthand": [
+ {"name": "grid shorthand creates explicit columns", "color": "#087f5b", "width": 287, "height": 60, "count": 3},
+ {"name": "custom property grid shorthand creates explicit columns", "color": "#1971c2", "width": 287, "height": 60, "count": 3}
+ ],
"mixed-content-block": [
{"name": "full-width block child", "color": "#ccddff", "width": 400}
],
diff --git a/render-repros/grid-auto-repeat.html b/render-repros/grid-auto-repeat.html
new file mode 100644
index 00000000..17c69914
--- /dev/null
+++ b/render-repros/grid-auto-repeat.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>grid auto repeat</title>
+ <style>
+ html, body { margin: 0; }
+ .grid { display: grid; width: 900px; gap: 20px; }
+ .fill { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
+ .fit { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-top: 20px; }
+ .fill > div { height: 60px; background: #087f5b; }
+ .fit > div { height: 60px; background: #1971c2; }
+ </style>
+</head>
+<body>
+ <div class="grid fill"><div></div><div></div><div></div><div></div></div>
+ <div class="grid fit"><div></div><div></div><div></div></div>
+</body>
+</html>
diff --git a/render-repros/grid-shorthand.html b/render-repros/grid-shorthand.html
new file mode 100644
index 00000000..7ec4cdc8
--- /dev/null
+++ b/render-repros/grid-shorthand.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>grid shorthand</title>
+ <style>
+ html, body { margin: 0; }
+ .grid { display: grid; width: 900px; gap: 20px; }
+ .direct { grid: auto-flow / repeat(3, 1fr); }
+ .custom { --responsive-grid: auto-flow/repeat(3, 1fr); grid: var(--responsive-grid); margin-top: 20px; }
+ .direct > div { height: 60px; background: #087f5b; }
+ .custom > div { height: 60px; background: #1971c2; }
+ </style>
+</head>
+<body>
+ <div class="grid direct"><div></div><div></div><div></div></div>
+ <div class="grid custom"><div></div><div></div><div></div></div>
+</body>
+</html>