Skip to content

The headless browser for AI agents and web scraping

test: gate relative box edge geometry

SGavrlca31d390702f
diff --git a/render-repros/checks.json b/render-repros/checks.json
index 9c654d61..ba89ffa0 100644
--- a/render-repros/checks.json
+++ b/render-repros/checks.json
@@ -54,6 +54,14 @@
"modern-streams": [
{"name": "streamed hydration contracts", "color": "#186aa5", "width": 360, "height": 90}
],
+ "relative-box-edges": [
+ {"name": "vh margin resolves against viewport height", "color": "#087f5b", "x": 0, "y": 150, "width": 100, "height": 40},
+ {"name": "vw margin resolves against viewport width", "color": "#1971c2", "x": 90, "y": 200, "width": 100, "height": 40},
+ {"name": "em padding resolves against element font size", "color": "#c2255c", "x": 40, "y": 280, "width": 20, "height": 40},
+ {"name": "rem padding resolves against root font size", "color": "#2b8a3e", "x": 36, "y": 360, "width": 20, "height": 40},
+ {"name": "vmin margin resolves against smaller viewport axis", "color": "#f08c00", "x": 90, "y": 440, "width": 100, "height": 40},
+ {"name": "vmax margin resolves against larger viewport axis", "color": "#1098ad", "x": 100, "y": 520, "width": 100, "height": 40}
+ ],
"tables": [
{"name": "content-box fixed cell column", "color": "#ffcc99", "width": 208}
],
diff --git a/render-repros/relative-box-edges.html b/render-repros/relative-box-edges.html
new file mode 100644
index 00000000..dab36788
--- /dev/null
+++ b/render-repros/relative-box-edges.html
@@ -0,0 +1,30 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>relative box edges</title>
+ <style>
+ html { font-size: 18px; }
+ html, body { margin: 0; }
+ .row { width: 100%; height: 80px; overflow: hidden; }
+ .vh-row { height: 200px; }
+ .box { width: 100px; height: 40px; }
+ .vh-margin { margin-top: 15vh; background: #087f5b; }
+ .vw-margin { margin-left: 10vw; background: #1971c2; }
+ .em-padding { box-sizing: border-box; width: 200px; height: 40px; padding-left: 2em; font-size: 20px; background: #e8590c; }
+ .rem-padding { box-sizing: border-box; width: 200px; height: 40px; padding-left: 2rem; background: #7048e8; }
+ .em-inner { width: 20px; height: 40px; background: #c2255c; }
+ .rem-inner { width: 20px; height: 40px; background: #2b8a3e; }
+ .vmin-margin { margin-left: 10vmin; background: #f08c00; }
+ .vmax-margin { margin-left: 10vmax; background: #1098ad; }
+ </style>
+</head>
+<body>
+ <div class="row vh-row"><div class="box vh-margin"></div></div>
+ <div class="row"><div class="box vw-margin"></div></div>
+ <div class="row"><div class="em-padding"><div class="em-inner"></div></div></div>
+ <div class="row"><div class="rem-padding"><div class="rem-inner"></div></div></div>
+ <div class="row"><div class="box vmin-margin"></div></div>
+ <div class="row"><div class="box vmax-margin"></div></div>
+</body>
+</html>