Skip to content

The headless browser for AI agents and web scraping

test: gate final table row geometry

SGavrl9acd74dbeaed
diff --git a/render-repros/checks.json b/render-repros/checks.json
index 518fad82..f90c218f 100644
--- a/render-repros/checks.json
+++ b/render-repros/checks.json
@@ -209,6 +209,17 @@
"tables": [
{"name": "content-box fixed cell column", "color": "#ffcc99", "width": 208}
],
+ "table-row-geometry": [
+ {"name": "cell height remains a minimum below block content", "color": "#1971c2", "x": 0, "y": 0, "width": 40, "height": 30},
+ {"name": "sibling cell stretches to the content-sized row", "color": "#f783ac", "x": 40, "y": 0, "width": 50, "height": 30},
+ {"name": "text line box grows beyond the cell height", "color": "#2b8a3e", "x": 0, "y": 60, "width": 100, "height": 15},
+ {"name": "row height remains a minimum above short content", "color": "#e8590c", "x": 0, "y": 110, "width": 70, "height": 40},
+ {"name": "rowspan content sizes the complete span", "color": "#7048e8", "x": 0, "y": 180, "width": 30, "height": 80},
+ {"name": "rowspan excess reaches the first row", "color": "#15aabf", "x": 30, "y": 190, "width": 60, "height": 20},
+ {"name": "rowspan excess reaches the second row", "color": "#fab005", "x": 30, "y": 230, "width": 60, "height": 20},
+ {"name": "final-width nested table determines header row height", "color": "#ff6600", "x": 180, "y": 0, "width": 700, "height": 24},
+ {"name": "later nested row starts after the final header height", "color": "#f6f6ef", "x": 180, "y": 24, "width": 700, "height": 15}
+ ],
"table-track-geometry": [
{"name": "separate spacing reserves the outer table edges", "color": "#ffcc99", "x": 2, "y": 2, "width": 208, "height": 23},
{"name": "auto column receives max-content width", "color": "#74c0fc", "x": 212, "y": 2, "width": 54, "height": 23},
diff --git a/render-repros/table-row-geometry.html b/render-repros/table-row-geometry.html
new file mode 100644
index 00000000..0ac02cee
--- /dev/null
+++ b/render-repros/table-row-geometry.html
@@ -0,0 +1,111 @@
+<!doctype html>
+<html>
+<head>
+ <meta charset="utf-8">
+ <title>table row geometry</title>
+ <style>
+ html, body { margin: 0; }
+ body { font-family: sans-serif; font-size: 13px; }
+ table { position: absolute; border-spacing: 0; }
+ td { padding: 0; }
+
+ #cell-height-is-minimum { left: 0; top: 0; }
+ #cell-height-is-minimum .short {
+ width: 40px;
+ height: 10px;
+ background: #1971c2;
+ }
+ #cell-height-is-minimum .tall { background: #f783ac; }
+ #cell-height-is-minimum .short div { width: 40px; height: 20px; }
+ #cell-height-is-minimum .tall div { width: 50px; height: 30px; }
+
+ #text-over-height { left: 0; top: 60px; }
+ #text-over-height td {
+ width: 100px;
+ height: 10px;
+ line-height: 15px;
+ background: #2b8a3e;
+ }
+
+ #row-height-is-minimum { left: 0; top: 110px; }
+ #row-height-is-minimum tr { height: 40px; }
+ #row-height-is-minimum td { width: 70px; background: #e8590c; }
+ #row-height-is-minimum td div { width: 20px; height: 20px; }
+
+ #rowspan { left: 0; top: 180px; }
+ #rowspan .spanning { background: #7048e8; }
+ #rowspan .spanning div { width: 30px; height: 80px; }
+ #rowspan .row-one { width: 60px; height: 20px; background: #15aabf; }
+ #rowspan .row-two { width: 60px; height: 20px; background: #fab005; }
+
+ #nested-row-reflow {
+ left: 180px;
+ top: 0;
+ width: 700px;
+ background: #f6f6ef;
+ }
+ #nested-row-reflow .header { background: #ff6600; }
+ #nested-row-reflow table { position: static; }
+ #nested-row-reflow .header table {
+ width: 100%;
+ padding: 2px;
+ }
+ #nested-row-reflow .logo {
+ width: 18px;
+ height: 18px;
+ border: 1px solid white;
+ background: #1971c2;
+ }
+ #nested-row-reflow .label {
+ height: 10px;
+ line-height: 16px;
+ }
+ #nested-row-reflow .content table { color: #555; }
+ </style>
+</head>
+<body>
+ <table id="cell-height-is-minimum">
+ <tr>
+ <td class="short"><div></div></td>
+ <td class="tall"><div></div></td>
+ </tr>
+ </table>
+
+ <table id="text-over-height">
+ <tr><td>one line</td></tr>
+ </table>
+
+ <table id="row-height-is-minimum">
+ <tr><td><div></div></td></tr>
+ </table>
+
+ <table id="rowspan">
+ <tr>
+ <td class="spanning" rowspan="2"><div></div></td>
+ <td><div class="row-one"></div></td>
+ </tr>
+ <tr><td><div class="row-two"></div></td></tr>
+ </table>
+
+ <table id="nested-row-reflow">
+ <tr class="header">
+ <td>
+ <table>
+ <tr>
+ <td><div class="logo"></div></td>
+ <td class="label">Header links remain on one line</td>
+ <td>account</td>
+ </tr>
+ </table>
+ </td>
+ </tr>
+ <tr class="content">
+ <td>
+ <table>
+ <tr><td colspan="2"></td><td>More</td></tr>
+ </table>
+ </td>
+ </tr>
+ </table>
+</body>
+</html>