Skip to content

The headless browser for AI agents and web scraping

test: gate font shorthand geometry

SGavrl7ddf52eb27de
diff --git a/render-repros/checks.json b/render-repros/checks.json
index 9010b363..3bbc9951 100644
--- a/render-repros/checks.json
+++ b/render-repros/checks.json
@@ -48,6 +48,10 @@
{"name": "display contents flex sidebar starts at container edge", "color": "#7048e8", "x": 0, "y": 260, "width": 150, "height": 140},
{"name": "display contents flex body keeps its intended inset", "color": "#c2255c", "x": 150, "y": 260, "width": 450, "height": 160}
],
+ "font-shorthand": [
+ {"name": "custom property font shorthand sets em geometry", "color": "#1971c2", "x": 0, "y": 0, "width": 200, "height": 80},
+ {"name": "later font shorthand replaces prior longhands", "color": "#e8590c", "x": 0, "y": 80, "width": 200, "height": 40}
+ ],
"float-flow-bands": [
{"name": "right float occupies its band", "color": "#1971c2", "x": 650, "y": 0, "width": 250, "height": 400},
{"name": "float-avoiding intro uses available band", "color": "#087f5b", "x": 0, "y": 0, "width": 650, "height": 100},
diff --git a/render-repros/font-shorthand.html b/render-repros/font-shorthand.html
new file mode 100644
index 00000000..fae7d832
--- /dev/null
+++ b/render-repros/font-shorthand.html
@@ -0,0 +1,30 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>font shorthand geometry</title>
+ <style>
+ html, body { margin: 0; }
+ :root { --hero-font: italic 700 40px/50px "Arial", sans-serif; }
+ #hero {
+ font: var(--hero-font);
+ width: 5em;
+ height: 2em;
+ background: #1971c2;
+ }
+ #reset {
+ font-style: italic;
+ font-weight: bold;
+ line-height: 3;
+ font: 20px/30px sans-serif;
+ width: 10em;
+ height: 2em;
+ background: #e8590c;
+ }
+ </style>
+</head>
+<body>
+ <div id="hero"></div>
+ <div id="reset"></div>
+</body>
+</html>