Skip to content

The headless browser for AI agents and web scraping

test: gate rounded CSS geometry

SGavrl071f92533fea
diff --git a/render-repros/checks.json b/render-repros/checks.json
index 85400342..c5e06f14 100644
--- a/render-repros/checks.json
+++ b/render-repros/checks.json
@@ -50,7 +50,8 @@
{"name": "min margin uses actual viewport", "color": "#1971c2", "x": 225, "y": 60, "width": 100, "height": 40},
{"name": "clamp width uses actual viewport", "color": "#e8590c", "x": 0, "y": 120, "width": 270, "height": 40},
{"name": "calc combines viewport and root font units", "color": "#7048e8", "x": 122, "y": 180, "width": 100, "height": 40},
- {"name": "max padding uses actual viewport", "color": "#c2255c", "x": 60, "y": 240, "width": 20, "height": 40}
+ {"name": "max padding uses actual viewport", "color": "#c2255c", "x": 60, "y": 240, "width": 20, "height": 40},
+ {"name": "round quantizes nested custom property math", "color": "#2f9e44", "x": 0, "y": 300, "width": 250, "height": 40}
],
"flex-whitespace-items": [
{"name": "direct flex sidebar starts at container edge", "color": "#1971c2", "x": 0, "y": 0, "width": 225, "height": 180},
diff --git a/render-repros/contextual-css-math.html b/render-repros/contextual-css-math.html
index e00a0b57..b3456640 100644
--- a/render-repros/contextual-css-math.html
+++ b/render-repros/contextual-css-math.html
@@ -12,6 +12,12 @@
.calculated { width: 100px; height: 40px; margin-left: calc(10vw + 2rem); background: #7048e8; }
.padded { box-sizing: border-box; width: 200px; height: 40px; padding-left: max(5vw, 60px); background: #f08c00; }
.inner { width: 20px; height: 40px; background: #c2255c; }
+ .rounded {
+ --media-width: 247px;
+ width: calc(round(var(--media-width) * 1, 10px));
+ height: 40px;
+ background: #2f9e44;
+ }
</style>
</head>
<body>
@@ -20,5 +26,6 @@
<div class="row"><div class="clamped"></div></div>
<div class="row"><div class="calculated"></div></div>
<div class="row"><div class="padded"><div class="inner"></div></div></div>
+ <div class="row"><div class="rounded"></div></div>
</body>
</html>