Skip to content

The headless browser for AI agents and web scraping

test: gate background shorthand reset

SGavrl49541792eeb6
diff --git a/render-repros/background-shorthand-reset.html b/render-repros/background-shorthand-reset.html
new file mode 100644
index 00000000..80e5828d
--- /dev/null
+++ b/render-repros/background-shorthand-reset.html
@@ -0,0 +1,37 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>background shorthand reset</title>
+ <style>
+ html, body { margin: 0; }
+ #underlay {
+ width: 300px;
+ height: 200px;
+ background: #f08c00;
+ }
+ #reset {
+ width: 300px;
+ height: 200px;
+ padding: 50px;
+ box-sizing: border-box;
+ background: #1971c2;
+ background-size: 20px 20px;
+ background-position: center;
+ background: 0;
+ }
+ #content {
+ width: 200px;
+ height: 100px;
+ background: #087f5b;
+ }
+ </style>
+</head>
+<body>
+ <div id="underlay">
+ <div id="reset">
+ <div id="content"></div>
+ </div>
+ </div>
+</body>
+</html>
diff --git a/render-repros/checks.json b/render-repros/checks.json
index dd32b1e0..2cee9a87 100644
--- a/render-repros/checks.json
+++ b/render-repros/checks.json
@@ -17,6 +17,10 @@
{"name": "end auto margin absorbs free space", "color": "#7048e8", "x": 50, "y": 260, "width": 200, "height": 40},
{"name": "auto width leaves auto margins at zero", "color": "#c2255c", "x": 0, "y": 340, "width": 900, "height": 40}
],
+ "background-shorthand-reset": [
+ {"name": "reset shorthand exposes the underlay through padding", "color": "#f08c00", "x": 0, "y": 0, "width": 300, "height": 200},
+ {"name": "content remains inside the transparent padding", "color": "#087f5b", "x": 50, "y": 50, "width": 200, "height": 100}
+ ],
"box-sizing": [
{"name": "content-box fixed", "color": "#22aa55", "width": 220, "height": 90},
{"name": "border-box fixed", "color": "#228866", "width": 190, "height": 60},