Best headless browser for AI agents. Lite, Fast, High-Compatibility. Built in Rust
Rust ai-agentsai-toolsbrowserbrowser-automationcloud-browserheadlessheadless-browserkitesurfplaywrightpuppeteerrustservoweb-crawlerweb-crawlingweb-scraperweb-scraping
test(layout): record Chromium table height distribution oracle
ldm0d05c1f7feeca
diff --git a/moli-renderer-v8/tests/fixtures/table-row-heights.chromium.json b/moli-renderer-v8/tests/fixtures/table-row-heights.chromium.jsonnew file mode 100644index 000000000..28d2a5e73--- /dev/null+++ b/moli-renderer-v8/tests/fixtures/table-row-heights.chromium.json@@ -0,0 +1,180 @@+{+ "product": "Chrome/147.0.7709.0",+ "revision": "@0000000000000000000000000000000000000000",+ "phases": [+ [+ {"name": "thead-fixed", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 20], [0, 0, 200, 20], [0, 5, 10, 10], [0, 20, 200, 60], [0, 20, 200, 60], [0, 35, 10, 30], [0, 80, 240, 3]]},+ {"name": "thead-minimum", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "tbody-fixed", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 20], [0, 0, 200, 20], [0, 5, 10, 10], [0, 20, 200, 60], [0, 20, 200, 60], [0, 35, 10, 30], [0, 80, 240, 3]]},+ {"name": "tbody-minimum", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "tfoot-fixed", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 20], [0, 0, 200, 20], [0, 5, 10, 10], [0, 20, 200, 60], [0, 20, 200, 60], [0, 35, 10, 30], [0, 80, 240, 3]]},+ {"name": "tfoot-minimum", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "fixed-and-auto-rows", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 70], [0, 10, 200, 70], [0, 30, 10, 30], [0, 80, 240, 3]]},+ {"name": "empty-rows", "rects": [[0, 0, 240, 93], [0, 0, 200, 90], [0, 0, 200, 90], [0, 0, 200, 30], [0, 0, 200, 30], [0, 30, 200, 30], [0, 30, 200, 30], [0, 60, 200, 30], [0, 60, 200, 30], [0, 90, 240, 3]]},+ {"name": "empty-and-fixed", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 70], [0, 10, 200, 70], [0, 80, 240, 3]]},+ {"name": "group-order", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 90, 200, 10], [0, 90, 200, 10], [0, 90, 200, 10], [0, 92.5, 10, 5], [0, 20, 200, 70], [0, 20, 200, 70], [0, 20, 200, 70], [0, 45, 10, 20], [0, 0, 200, 20], [0, 0, 200, 20], [0, 0, 200, 20], [0, 7.5, 10, 5], [0, 100, 240, 3]]},+ {"name": "multiple-bodies", "rects": [[0, 0, 240, 123], [0, 0, 200, 120], [0, 0, 200, 30], [0, 0, 200, 30], [0, 0, 200, 30], [0, 10, 10, 10], [0, 30, 200, 90], [0, 30, 200, 60], [0, 30, 200, 60], [0, 50, 10, 20], [0, 90, 200, 30], [0, 90, 200, 30], [0, 100, 10, 10], [0, 120, 240, 3]]},+ {"name": "fixed-bodies", "rects": [[0, 0, 240, 183], [0, 0, 200, 180], [0, 0, 200, 60], [0, 0, 200, 60], [0, 0, 200, 60], [0, 25, 10, 10], [0, 60, 200, 120], [0, 60, 200, 120], [0, 60, 200, 120], [0, 110, 10, 20], [0, 180, 240, 3]]},+ {"name": "percentage-groups", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 20], [0, 0, 200, 20], [0, 0, 200, 20], [0, 5, 10, 10], [0, 20, 200, 60], [0, 20, 200, 60], [0, 20, 200, 60], [0, 20, 10, 60], [0, 80, 200, 20], [0, 80, 200, 20], [0, 80, 200, 20], [0, 85, 10, 10], [0, 100, 240, 3]]},+ {"name": "percentage-rows", "rects": [[0, 0, 240, 123], [0, 0, 200, 120], [0, 0, 200, 120], [0, 0, 200, 30], [0, 0, 200, 30], [0, 10, 10, 10], [0, 30, 200, 60], [0, 30, 200, 60], [0, 55, 10, 10], [0, 90, 200, 30], [0, 90, 200, 30], [0, 100, 10, 10], [0, 120, 240, 3]]},+ {"name": "percentage-overflow", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 71.25], [0, 0, 200, 71.25], [0, 30.625, 10, 10], [0, 71.25, 200, 18.75], [0, 71.25, 200, 18.75], [0, 75.625, 10, 10], [0, 90, 200, 10], [0, 90, 200, 10], [0, 90, 10, 10], [0, 100, 240, 3]]},+ {"name": "percentage-fixed-group", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 60], [0, 0, 200, 60], [0, 25, 10, 10], [0, 60, 200, 40], [0, 60, 200, 40], [0, 75, 10, 10], [0, 100, 240, 3]]},+ {"name": "percentage-auto-table", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "percentage-table", "rects": [[0, 0, 240, 23], [0, 0, 200, 20], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 10], [0, 10, 200, 10], [0, 10, 200, 10], [0, 10, 10, 10], [0, 20, 240, 3]]},+ {"name": "minimum-table", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 25], [0, 0, 200, 25], [0, 7.5, 10, 10], [0, 25, 200, 75], [0, 25, 200, 75], [0, 47.5, 10, 30], [0, 100, 240, 3]]},+ {"name": "rowspan-auto", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 20], [0, 0, 100, 80], [0, 0, 100, 80], [100, 0, 100, 20], [100, 5, 100, 10], [0, 20, 200, 60], [100, 20, 100, 60], [100, 35, 100, 30], [0, 80, 240, 3]]},+ {"name": "rowspan-group", "rects": [[0, 0, 240, 123], [0, 0, 200, 120], [0, 0, 200, 120], [0, 0, 200, 30], [0, 0, 100, 120], [0, 20, 100, 80], [100, 0, 100, 30], [100, 10, 100, 10], [0, 30, 200, 90], [100, 30, 100, 90], [100, 60, 100, 30], [0, 120, 240, 3]]},+ {"name": "rowspan-empty", "rects": [[0, 0, 240, 93], [0, 0, 200, 90], [0, 0, 200, 90], [0, 0, 200, 0], [0, 0, 100, 90], [100, 0, 100, 0], [0, 0, 200, 0], [100, 0, 100, 0], [0, 0, 200, 90], [100, 0, 100, 90], [0, 90, 240, 3]]},+ {"name": "rowspan-zero", "rects": [[0, 0, 240, 93], [0, 0, 200, 90], [0, 0, 200, 80], [0, 0, 200, 0], [0, 0, 100, 80], [0, 15, 100, 50], [100, 0, 100, 0], [0, 0, 200, 80], [100, 0, 100, 80], [0, 80, 200, 10], [0, 80, 200, 10], [0, 80, 100, 10], [0, 80, 100, 10], [0, 90, 240, 3]]},+ {"name": "rowspan-crossed", "rects": [[0, 0, 240, 163], [0, 0, 200, 160], [0, 0, 200, 160], [0, 0, 200, 0], [0, 0, 100, 160], [100, 0, 100, 0], [0, 0, 200, 160], [100, 0, 100, 160], [0, 160, 200, 0], [0, 160, 100, 0], [0, 160, 240, 3]]},+ {"name": "spacing", "rects": [[0, 0, 240, 143], [0, 0, 200, 140], [9, 11, 182, 80], [9, 11, 182, 18.75], [9, 11, 182, 18.75], [9, 15.375, 10, 10], [9, 34.75, 182, 56.25], [9, 34.75, 182, 56.25], [9, 47.875, 10, 30], [9, 96, 182, 33], [9, 96, 182, 33], [9, 96, 182, 33], [9, 107.5, 10, 10], [0, 140, 240, 3]]},+ {"name": "collapsed", "rects": [[0, 0, 240, 87], [0, 0, 200, 84], [2, 2, 196, 80], [2, 2, 196, 21.8125], [2, 2, 196, 21.8125], [4, 8.90625, 10, 10], [2, 23.8125, 196, 58.1875], [2, 23.8125, 196, 58.1875], [4, 36.90625, 10, 30], [0, 84, 240, 3]]},+ {"name": "caption", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 20], [0, 20, 200, 80], [0, 20, 200, 20], [0, 20, 200, 20], [0, 25, 10, 10], [0, 40, 200, 60], [0, 40, 200, 60], [0, 55, 10, 30], [0, 100, 240, 3]]},+ {"name": "percent-child-auto", "rects": [[0, 0, 240, 13], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 0, 10, 10], [0, 10, 240, 3]]},+ {"name": "percent-child-table", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 25, 10, 50], [0, 25, 10, 10], [0, 100, 240, 3]]},+ {"name": "percent-child-group", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 45, 10, 10], [0, 45, 10, 10], [0, 100, 240, 3]]},+ {"name": "percent-child-row", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 45, 10, 10], [0, 45, 10, 10], [0, 100, 240, 3]]},+ {"name": "percent-child-cell", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 25, 10, 50], [0, 25, 10, 10], [0, 100, 240, 3]]},+ {"name": "cell-percentage", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 70], [0, 0, 200, 70], [0, 30, 200, 10], [0, 70, 200, 30], [0, 70, 200, 30], [0, 80, 200, 10], [0, 100, 240, 3]]},+ {"name": "alignment", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 66.65625, 100], [0, 0, 66.65625, 10], [66.65625, 0, 66.65625, 100], [66.65625, 40, 66.65625, 20], [133.3125, 0, 66.6875, 100], [133.3125, 70, 66.6875, 30], [0, 100, 240, 3]]},+ {"name": "baseline", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 100, 80], [0, 20, 10, 10], [100, 0, 100, 80], [100, 0, 10, 30], [0, 80, 240, 3]]},+ {"name": "nested", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 20, 100, 60], [0, 20, 100, 60], [0, 20, 100, 60], [0, 20, 100, 60], [0, 45, 100, 10], [0, 100, 240, 3]]},+ {"name": "flex-parent", "rects": [[0, 0, 200, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 20], [0, 0, 200, 20], [0, 5, 10, 10], [0, 20, 200, 60], [0, 20, 200, 60], [0, 35, 10, 30], [0, 80, 200, 3]]},+ {"name": "grid-parent", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 20], [0, 0, 200, 20], [0, 5, 10, 10], [0, 20, 200, 60], [0, 20, 200, 60], [0, 35, 10, 30], [0, 80, 240, 3]]},+ {"name": "wrapping", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 100, 80], [0, 20, 80, 20], [0, 40, 80, 20], [100, 0, 100, 80], [100, 35, 100, 10], [0, 80, 240, 3]]},+ {"name": "percentage-definite-table", "rects": [[0, 0, 240, 240], [0, 0, 200, 120], [0, 0, 200, 72], [0, 0, 200, 72], [0, 0, 200, 72], [0, 31, 10, 10], [0, 72, 200, 48], [0, 72, 200, 48], [0, 72, 200, 48], [0, 91, 10, 10], [0, 120, 240, 3]]},+ {"name": "flex-direct-table", "rects": [[0, 0, 240, 160], [0, 0, 200, 157], [0, 0, 200, 157], [0, 0, 200, 39.25], [0, 0, 200, 39.25], [0, 14.625, 10, 10], [0, 39.25, 200, 117.75], [0, 39.25, 200, 117.75], [0, 83.125, 10, 30], [0, 157, 240, 3]]},+ {"name": "grid-direct-table", "rects": [[0, 0, 240, 160], [0, 0, 200, 157], [0, 0, 200, 157], [0, 0, 200, 39.25], [0, 0, 200, 39.25], [0, 14.625, 10, 10], [0, 39.25, 200, 117.75], [0, 39.25, 200, 117.75], [0, 83.125, 10, 30], [0, 157, 240, 3]]},+ {"name": "caption-flex", "rects": [[0, 0, 240, 160], [0, 0, 200, 157], [0, 0, 200, 20], [0, 20, 200, 137], [0, 20, 200, 34.25], [0, 20, 200, 34.25], [0, 32.125, 10, 10], [0, 54.25, 200, 102.75], [0, 54.25, 200, 102.75], [0, 90.625, 10, 30], [0, 157, 240, 3]]},+ {"name": "empty-groups", "rects": [[0, 0, 240, 183], [0, 0, 200, 180], [0, 0, 200, 80], [0, 80, 200, 20], [0, 80, 200, 20], [0, 80, 200, 20], [0, 80, 10, 20], [0, 100, 200, 80], [0, 180, 240, 3]]},+ {"name": "empty-table", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 100, 240, 3]]},+ {"name": "empty-table-spacing", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 90], [0, 100, 240, 3]]},+ {"name": "empty-groups-spacing", "rects": [[0, 0, 240, 193], [0, 0, 200, 190], [3, 0, 194, 185], [3, 0, 194, 185], [3, 0, 194, 80], [3, 85, 194, 20], [3, 85, 194, 20], [3, 85, 194, 20], [3, 85, 10, 20], [3, 105, 194, 80], [0, 190, 240, 3]]},+ {"name": "empty-groups-spacing-fixed", "rects": [[0, 0, 240, 303], [0, 0, 200, 300], [3, 0, 194, 80], [3, 85, 194, 120], [3, 85, 194, 120], [3, 85, 194, 120], [3, 135, 10, 20], [3, 205, 194, 80], [0, 300, 240, 3]]},+ {"name": "empty-groups-collapsed", "rects": [[0, 0, 240, 191], [0, 0, 200, 188], [2, 2, 196, 80], [2, 82, 196, 24], [2, 82, 196, 24], [2, 82, 196, 24], [4, 84, 10, 20], [2, 106, 196, 80], [0, 188, 240, 3]]},+ {"name": "content-box-table", "rects": [[0, 0, 240, 115], [0, 0, 212, 112], [9, 11, 194, 90], [9, 11, 194, 21.25], [9, 11, 194, 21.25], [9, 16.625, 10, 10], [9, 37.25, 194, 63.75], [9, 37.25, 194, 63.75], [9, 54.125, 10, 30], [0, 112, 240, 3]]},+ {"name": "percent-scroll-auto", "rects": [[0, 0, 240, 203], [0, 0, 200, 200], [0, 0, 200, 200], [0, 0, 200, 200], [0, 0, 200, 200], [0, 0, 200, 200], [0, 0, 200, 200], [0, 200, 240, 3]]},+ {"name": "percent-scroll-table", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 200], [0, 100, 240, 3]]},+ {"name": "percent-scroll-cell", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 200], [0, 100, 240, 3]]},+ {"name": "percent-baseline", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 100, 100], [0, 0, 10, 50], [100, 0, 100, 100], [100, 30, 10, 20], [0, 100, 240, 3]]},+ {"name": "cell-padding", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 100, 100], [10, 45, 80, 10], [100, 0, 100, 100], [110, 80, 80, 10], [0, 100, 240, 3]]},+ {"name": "rtl", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 20], [0, 0, 200, 20], [190, 5, 10, 10], [0, 20, 200, 60], [0, 20, 200, 60], [190, 35, 10, 30], [0, 80, 240, 3]]}+ ],+ [+ {"name": "thead-fixed", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 160, 24], [0, 7, 10, 10], [0, 24, 160, 72], [0, 24, 160, 72], [0, 45, 10, 30], [0, 96, 240, 3]]},+ {"name": "thead-minimum", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 160, 24], [0, 7, 10, 10], [0, 24, 160, 72], [0, 24, 160, 72], [0, 45, 10, 30], [0, 96, 240, 3]]},+ {"name": "tbody-fixed", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 160, 24], [0, 7, 10, 10], [0, 24, 160, 72], [0, 24, 160, 72], [0, 45, 10, 30], [0, 96, 240, 3]]},+ {"name": "tbody-minimum", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 160, 24], [0, 7, 10, 10], [0, 24, 160, 72], [0, 24, 160, 72], [0, 45, 10, 30], [0, 96, 240, 3]]},+ {"name": "tfoot-fixed", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 160, 24], [0, 7, 10, 10], [0, 24, 160, 72], [0, 24, 160, 72], [0, 45, 10, 30], [0, 96, 240, 3]]},+ {"name": "tfoot-minimum", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 160, 24], [0, 7, 10, 10], [0, 24, 160, 72], [0, 24, 160, 72], [0, 45, 10, 30], [0, 96, 240, 3]]},+ {"name": "fixed-and-auto-rows", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 10], [0, 0, 160, 10], [0, 0, 10, 10], [0, 10, 160, 86], [0, 10, 160, 86], [0, 38, 10, 30], [0, 96, 240, 3]]},+ {"name": "empty-rows", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 32], [0, 0, 160, 32], [0, 32, 160, 32], [0, 32, 160, 32], [0, 64, 160, 32], [0, 64, 160, 32], [0, 96, 240, 3]]},+ {"name": "empty-and-fixed", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 10], [0, 0, 160, 10], [0, 0, 10, 10], [0, 10, 160, 86], [0, 10, 160, 86], [0, 96, 240, 3]]},+ {"name": "group-order", "rects": [[0, 0, 240, 291], [0, 0, 160, 288], [0, 192, 160, 96], [0, 192, 160, 96], [0, 192, 160, 96], [0, 237.5, 10, 5], [0, 96, 160, 96], [0, 96, 160, 96], [0, 96, 160, 96], [0, 134, 10, 20], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 45.5, 10, 5], [0, 288, 240, 3]]},+ {"name": "multiple-bodies", "rects": [[0, 0, 240, 195], [0, 0, 160, 192], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 43, 10, 10], [0, 96, 160, 96], [0, 96, 160, 64], [0, 96, 160, 64], [0, 118, 10, 20], [0, 160, 160, 32], [0, 160, 160, 32], [0, 171, 10, 10], [0, 192, 240, 3]]},+ {"name": "fixed-bodies", "rects": [[0, 0, 240, 195], [0, 0, 160, 192], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 43, 10, 10], [0, 96, 160, 96], [0, 96, 160, 96], [0, 96, 160, 96], [0, 134, 10, 20], [0, 192, 240, 3]]},+ {"name": "percentage-groups", "rects": [[0, 0, 240, 291], [0, 0, 160, 288], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 43, 10, 10], [0, 96, 160, 96], [0, 96, 160, 96], [0, 96, 160, 96], [0, 114, 10, 60], [0, 192, 160, 96], [0, 192, 160, 96], [0, 192, 160, 96], [0, 235, 10, 10], [0, 288, 240, 3]]},+ {"name": "percentage-rows", "rects": [[0, 0, 240, 123], [0, 0, 160, 120], [0, 0, 160, 120], [0, 0, 160, 30], [0, 0, 160, 30], [0, 10, 10, 10], [0, 30, 160, 60], [0, 30, 160, 60], [0, 55, 10, 10], [0, 90, 160, 30], [0, 90, 160, 30], [0, 100, 10, 10], [0, 120, 240, 3]]},+ {"name": "percentage-overflow", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 71.4375], [0, 0, 160, 71.4375], [0, 30.71875, 10, 10], [0, 71.4375, 160, 18.5625], [0, 71.4375, 160, 18.5625], [0, 75.71875, 10, 10], [0, 90, 160, 10], [0, 90, 160, 10], [0, 90, 10, 10], [0, 100, 240, 3]]},+ {"name": "percentage-fixed-group", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 57.59375], [0, 0, 160, 57.59375], [0, 23.796875, 10, 10], [0, 57.59375, 160, 38.40625], [0, 57.59375, 160, 38.40625], [0, 71.796875, 10, 10], [0, 96, 240, 3]]},+ {"name": "percentage-auto-table", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 57.59375], [0, 0, 160, 57.59375], [0, 23.796875, 10, 10], [0, 57.59375, 160, 38.40625], [0, 57.59375, 160, 38.40625], [0, 61.796875, 10, 30], [0, 96, 240, 3]]},+ {"name": "percentage-table", "rects": [[0, 0, 240, 195], [0, 0, 160, 192], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 43, 10, 10], [0, 96, 160, 96], [0, 96, 160, 96], [0, 96, 160, 96], [0, 139, 10, 10], [0, 192, 240, 3]]},+ {"name": "minimum-table", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 25], [0, 0, 160, 25], [0, 7.5, 10, 10], [0, 25, 160, 75], [0, 25, 160, 75], [0, 47.5, 10, 30], [0, 100, 240, 3]]},+ {"name": "rowspan-auto", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 80, 96], [0, 8, 80, 80], [80, 0, 80, 24], [80, 7, 80, 10], [0, 24, 160, 72], [80, 24, 80, 72], [80, 45, 80, 30], [0, 96, 240, 3]]},+ {"name": "rowspan-group", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 80, 96], [0, 8, 80, 80], [80, 0, 80, 24], [80, 7, 80, 10], [0, 24, 160, 72], [80, 24, 80, 72], [80, 45, 80, 30], [0, 96, 240, 3]]},+ {"name": "rowspan-empty", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 0], [0, 0, 80, 96], [80, 0, 80, 0], [0, 0, 160, 0], [80, 0, 80, 0], [0, 0, 160, 96], [80, 0, 80, 96], [0, 96, 240, 3]]},+ {"name": "rowspan-zero", "rects": [[0, 0, 240, 195], [0, 0, 160, 192], [0, 0, 160, 96], [0, 0, 160, 0], [0, 0, 80, 96], [0, 23, 80, 50], [80, 0, 80, 0], [0, 0, 160, 96], [80, 0, 80, 96], [0, 96, 160, 96], [0, 96, 160, 96], [0, 96, 80, 96], [0, 139, 80, 10], [0, 192, 240, 3]]},+ {"name": "rowspan-crossed", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 0], [0, 0, 80, 100], [80, 0, 80, 0], [0, 0, 160, 100], [80, 0, 80, 100], [0, 100, 160, 0], [0, 100, 80, 0], [0, 100, 240, 3]]},+ {"name": "spacing", "rects": [[0, 0, 240, 222], [0, 0, 160, 219], [9, 11, 142, 96], [9, 11, 142, 22.75], [9, 11, 142, 22.75], [9, 17.375, 10, 10], [9, 38.75, 142, 68.25], [9, 38.75, 142, 68.25], [9, 57.875, 10, 30], [9, 112, 142, 96], [9, 112, 142, 96], [9, 112, 142, 96], [9, 155, 10, 10], [0, 219, 240, 3]]},+ {"name": "collapsed", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [2, 2, 156, 96], [2, 2, 156, 26.171875], [2, 2, 156, 26.171875], [4, 11.078125, 10, 10], [2, 28.171875, 156, 69.828125], [2, 28.171875, 156, 69.828125], [4, 47.078125, 10, 30], [0, 100, 240, 3]]},+ {"name": "caption", "rects": [[0, 0, 240, 119], [0, 0, 160, 116], [0, 0, 160, 20], [0, 20, 160, 96], [0, 20, 160, 24], [0, 20, 160, 24], [0, 27, 10, 10], [0, 44, 160, 72], [0, 44, 160, 72], [0, 65, 10, 30], [0, 116, 240, 3]]},+ {"name": "percent-child-auto", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 43, 10, 10], [0, 43, 10, 10], [0, 96, 240, 3]]},+ {"name": "percent-child-table", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 25, 10, 50], [0, 25, 10, 10], [0, 100, 240, 3]]},+ {"name": "percent-child-group", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 43, 10, 10], [0, 43, 10, 10], [0, 96, 240, 3]]},+ {"name": "percent-child-row", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 45, 10, 10], [0, 45, 10, 10], [0, 100, 240, 3]]},+ {"name": "percent-child-cell", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 25, 10, 50], [0, 25, 10, 10], [0, 100, 240, 3]]},+ {"name": "cell-percentage", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 70], [0, 0, 160, 70], [0, 30, 160, 10], [0, 70, 160, 30], [0, 70, 160, 30], [0, 80, 160, 10], [0, 100, 240, 3]]},+ {"name": "alignment", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 53.328125, 96], [0, 0, 53.328125, 10], [53.328125, 0, 53.328125, 96], [53.328125, 38, 53.328125, 20], [106.65625, 0, 53.34375, 96], [106.65625, 66, 53.34375, 30], [0, 96, 240, 3]]},+ {"name": "baseline", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 80, 96], [0, 20, 10, 10], [80, 0, 80, 96], [80, 0, 10, 30], [0, 96, 240, 3]]},+ {"name": "nested", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 100, 96], [0, 0, 100, 96], [0, 0, 100, 96], [0, 0, 100, 96], [0, 43, 100, 10], [0, 96, 240, 3]]},+ {"name": "flex-parent", "rects": [[0, 0, 160, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 160, 24], [0, 7, 10, 10], [0, 24, 160, 72], [0, 24, 160, 72], [0, 45, 10, 30], [0, 96, 160, 3]]},+ {"name": "grid-parent", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 160, 24], [0, 7, 10, 10], [0, 24, 160, 72], [0, 24, 160, 72], [0, 45, 10, 30], [0, 96, 240, 3]]},+ {"name": "wrapping", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 80, 96], [0, 28, 80, 20], [0, 48, 80, 20], [80, 0, 80, 96], [80, 43, 80, 10], [0, 96, 240, 3]]},+ {"name": "percentage-definite-table", "rects": [[0, 0, 240, 320], [0, 0, 160, 192], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 43, 10, 10], [0, 96, 160, 96], [0, 96, 160, 96], [0, 96, 160, 96], [0, 139, 10, 10], [0, 192, 240, 3]]},+ {"name": "flex-direct-table", "rects": [[0, 0, 240, 160], [0, 0, 160, 157], [0, 0, 160, 157], [0, 0, 160, 39.25], [0, 0, 160, 39.25], [0, 14.625, 10, 10], [0, 39.25, 160, 117.75], [0, 39.25, 160, 117.75], [0, 83.125, 10, 30], [0, 157, 240, 3]]},+ {"name": "grid-direct-table", "rects": [[0, 0, 240, 160], [0, 0, 160, 157], [0, 0, 160, 157], [0, 0, 160, 39.25], [0, 0, 160, 39.25], [0, 14.625, 10, 10], [0, 39.25, 160, 117.75], [0, 39.25, 160, 117.75], [0, 83.125, 10, 30], [0, 157, 240, 3]]},+ {"name": "caption-flex", "rects": [[0, 0, 240, 160], [0, 0, 160, 157], [0, 0, 160, 20], [0, 20, 160, 137], [0, 20, 160, 34.25], [0, 20, 160, 34.25], [0, 32.125, 10, 10], [0, 54.25, 160, 102.75], [0, 54.25, 160, 102.75], [0, 90.625, 10, 30], [0, 157, 240, 3]]},+ {"name": "empty-groups", "rects": [[0, 0, 240, 291], [0, 0, 160, 288], [0, 0, 160, 96], [0, 96, 160, 96], [0, 96, 160, 96], [0, 96, 160, 96], [0, 134, 10, 20], [0, 192, 160, 96], [0, 288, 240, 3]]},+ {"name": "empty-table", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 100, 240, 3]]},+ {"name": "empty-table-spacing", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 96], [0, 100, 240, 3]]},+ {"name": "empty-groups-spacing", "rects": [[0, 0, 240, 301], [0, 0, 160, 298], [3, 0, 154, 293], [3, 0, 154, 293], [3, 0, 154, 96], [3, 101, 154, 96], [3, 101, 154, 96], [3, 101, 154, 96], [3, 139, 10, 20], [3, 197, 154, 96], [0, 298, 240, 3]]},+ {"name": "empty-groups-spacing-fixed", "rects": [[0, 0, 240, 303], [0, 0, 160, 300], [3, 0, 154, 96], [3, 101, 154, 96], [3, 101, 154, 96], [3, 101, 154, 96], [3, 139, 10, 20], [3, 197, 154, 96], [0, 300, 240, 3]]},+ {"name": "empty-groups-collapsed", "rects": [[0, 0, 240, 295], [0, 0, 160, 292], [2, 2, 156, 96], [2, 98, 156, 96], [2, 98, 156, 96], [2, 98, 156, 96], [4, 136, 10, 20], [2, 194, 156, 96], [0, 292, 240, 3]]},+ {"name": "content-box-table", "rects": [[0, 0, 240, 121], [0, 0, 172, 118], [9, 11, 154, 96], [9, 11, 154, 22.75], [9, 11, 154, 22.75], [9, 17.375, 10, 10], [9, 38.75, 154, 68.25], [9, 38.75, 154, 68.25], [9, 57.875, 10, 30], [0, 118, 240, 3]]},+ {"name": "percent-scroll-auto", "rects": [[0, 0, 240, 203], [0, 0, 160, 200], [0, 0, 160, 200], [0, 0, 160, 200], [0, 0, 160, 200], [0, 0, 160, 200], [0, 0, 160, 200], [0, 200, 240, 3]]},+ {"name": "percent-scroll-table", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 200], [0, 100, 240, 3]]},+ {"name": "percent-scroll-cell", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 200], [0, 100, 240, 3]]},+ {"name": "percent-baseline", "rects": [[0, 0, 240, 103], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 160, 100], [0, 0, 80, 100], [0, 0, 10, 50], [80, 0, 80, 100], [80, 30, 10, 20], [0, 100, 240, 3]]},+ {"name": "cell-padding", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 80, 96], [10, 43, 60, 10], [80, 0, 80, 96], [88, 78, 64, 10], [0, 96, 240, 3]]},+ {"name": "rtl", "rects": [[0, 0, 240, 99], [0, 0, 160, 96], [0, 0, 160, 96], [0, 0, 160, 24], [0, 0, 160, 24], [150, 7, 10, 10], [0, 24, 160, 72], [0, 24, 160, 72], [150, 45, 10, 30], [0, 96, 240, 3]]}+ ],+ [+ {"name": "thead-fixed", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "thead-minimum", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "tbody-fixed", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "tbody-minimum", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "tfoot-fixed", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "tfoot-minimum", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "fixed-and-auto-rows", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "empty-rows", "rects": [[0, 0, 240, 3], [0, 0, 200, 0], [0, 0, 200, 0], [0, 0, 200, 0], [0, 0, 200, 0], [0, 0, 200, 0], [0, 0, 200, 0], [0, 0, 200, 0], [0, 0, 200, 0], [0, 0, 240, 3]]},+ {"name": "empty-and-fixed", "rects": [[0, 0, 240, 13], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 0], [0, 10, 200, 0], [0, 10, 240, 3]]},+ {"name": "group-order", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 95, 200, 5], [0, 95, 200, 5], [0, 95, 200, 5], [0, 95, 10, 5], [0, 5, 200, 90], [0, 5, 200, 90], [0, 5, 200, 90], [0, 40, 10, 20], [0, 0, 200, 5], [0, 0, 200, 5], [0, 0, 200, 5], [0, 0, 10, 5], [0, 100, 240, 3]]},+ {"name": "multiple-bodies", "rects": [[0, 0, 240, 123], [0, 0, 200, 120], [0, 0, 200, 30], [0, 0, 200, 30], [0, 0, 200, 30], [0, 10, 10, 10], [0, 30, 200, 90], [0, 30, 200, 60], [0, 30, 200, 60], [0, 50, 10, 20], [0, 90, 200, 30], [0, 90, 200, 30], [0, 100, 10, 10], [0, 120, 240, 3]]},+ {"name": "fixed-bodies", "rects": [[0, 0, 240, 183], [0, 0, 200, 180], [0, 0, 200, 60], [0, 0, 200, 60], [0, 0, 200, 60], [0, 25, 10, 10], [0, 60, 200, 120], [0, 60, 200, 120], [0, 60, 200, 120], [0, 110, 10, 20], [0, 180, 240, 3]]},+ {"name": "percentage-groups", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 80], [0, 10, 200, 80], [0, 10, 200, 80], [0, 20, 10, 60], [0, 90, 200, 10], [0, 90, 200, 10], [0, 90, 200, 10], [0, 90, 10, 10], [0, 100, 240, 3]]},+ {"name": "percentage-rows", "rects": [[0, 0, 240, 123], [0, 0, 200, 120], [0, 0, 200, 120], [0, 0, 200, 30], [0, 0, 200, 30], [0, 10, 10, 10], [0, 30, 200, 60], [0, 30, 200, 60], [0, 55, 10, 10], [0, 90, 200, 30], [0, 90, 200, 30], [0, 100, 10, 10], [0, 120, 240, 3]]},+ {"name": "percentage-overflow", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 71.25], [0, 0, 200, 71.25], [0, 30.625, 10, 10], [0, 71.25, 200, 18.75], [0, 71.25, 200, 18.75], [0, 75.625, 10, 10], [0, 90, 200, 10], [0, 90, 200, 10], [0, 90, 10, 10], [0, 100, 240, 3]]},+ {"name": "percentage-fixed-group", "rects": [[0, 0, 240, 23], [0, 0, 200, 20], [0, 0, 200, 20], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 10], [0, 10, 200, 10], [0, 10, 10, 10], [0, 20, 240, 3]]},+ {"name": "percentage-auto-table", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "percentage-table", "rects": [[0, 0, 240, 23], [0, 0, 200, 20], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 10], [0, 10, 200, 10], [0, 10, 200, 10], [0, 10, 10, 10], [0, 20, 240, 3]]},+ {"name": "minimum-table", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 25], [0, 0, 200, 25], [0, 7.5, 10, 10], [0, 25, 200, 75], [0, 25, 200, 75], [0, 47.5, 10, 30], [0, 100, 240, 3]]},+ {"name": "rowspan-auto", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 20], [0, 0, 100, 80], [0, 0, 100, 80], [100, 0, 100, 20], [100, 5, 100, 10], [0, 20, 200, 60], [100, 20, 100, 60], [100, 35, 100, 30], [0, 80, 240, 3]]},+ {"name": "rowspan-group", "rects": [[0, 0, 240, 83], [0, 0, 200, 80], [0, 0, 200, 80], [0, 0, 200, 20], [0, 0, 100, 80], [0, 0, 100, 80], [100, 0, 100, 20], [100, 5, 100, 10], [0, 20, 200, 60], [100, 20, 100, 60], [100, 35, 100, 30], [0, 80, 240, 3]]},+ {"name": "rowspan-empty", "rects": [[0, 0, 240, 93], [0, 0, 200, 90], [0, 0, 200, 90], [0, 0, 200, 0], [0, 0, 100, 90], [100, 0, 100, 0], [0, 0, 200, 0], [100, 0, 100, 0], [0, 0, 200, 90], [100, 0, 100, 90], [0, 90, 240, 3]]},+ {"name": "rowspan-zero", "rects": [[0, 0, 240, 63], [0, 0, 200, 60], [0, 0, 200, 50], [0, 0, 200, 0], [0, 0, 100, 50], [0, 0, 100, 50], [100, 0, 100, 0], [0, 0, 200, 50], [100, 0, 100, 50], [0, 50, 200, 10], [0, 50, 200, 10], [0, 50, 100, 10], [0, 50, 100, 10], [0, 60, 240, 3]]},+ {"name": "rowspan-crossed", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 0], [0, 0, 100, 100], [100, 0, 100, 0], [0, 0, 200, 100], [100, 0, 100, 100], [0, 100, 200, 0], [0, 100, 100, 0], [0, 100, 240, 3]]},+ {"name": "spacing", "rects": [[0, 0, 240, 143], [0, 0, 200, 140], [9, 11, 182, 92.453125], [9, 11, 182, 21.859375], [9, 11, 182, 21.859375], [9, 16.921875, 10, 10], [9, 37.859375, 182, 65.59375], [9, 37.859375, 182, 65.59375], [9, 55.65625, 10, 30], [9, 108.453125, 182, 20.546875], [9, 108.453125, 182, 20.546875], [9, 108.453125, 182, 20.546875], [9, 113.71875, 10, 10], [0, 140, 240, 3]]},+ {"name": "collapsed", "rects": [[0, 0, 240, 51], [0, 0, 200, 48], [2, 2, 196, 44], [2, 2, 196, 12], [2, 2, 196, 12], [4, 4, 10, 10], [2, 14, 196, 32], [2, 14, 196, 32], [4, 14, 10, 30], [0, 48, 240, 3]]},+ {"name": "caption", "rects": [[0, 0, 240, 63], [0, 0, 200, 60], [0, 0, 200, 20], [0, 20, 200, 40], [0, 20, 200, 10], [0, 20, 200, 10], [0, 20, 10, 10], [0, 30, 200, 30], [0, 30, 200, 30], [0, 30, 10, 30], [0, 60, 240, 3]]},+ {"name": "percent-child-auto", "rects": [[0, 0, 240, 13], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 0, 10, 10], [0, 10, 240, 3]]},+ {"name": "percent-child-table", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 25, 10, 50], [0, 25, 10, 10], [0, 100, 240, 3]]},+ {"name": "percent-child-group", "rects": [[0, 0, 240, 13], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 0, 10, 10], [0, 10, 240, 3]]},+ {"name": "percent-child-row", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 45, 10, 10], [0, 45, 10, 10], [0, 100, 240, 3]]},+ {"name": "percent-child-cell", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 25, 10, 50], [0, 25, 10, 10], [0, 100, 240, 3]]},+ {"name": "cell-percentage", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 70], [0, 0, 200, 70], [0, 30, 200, 10], [0, 70, 200, 30], [0, 70, 200, 30], [0, 80, 200, 10], [0, 100, 240, 3]]},+ {"name": "alignment", "rects": [[0, 0, 240, 33], [0, 0, 200, 30], [0, 0, 200, 30], [0, 0, 200, 30], [0, 0, 66.65625, 30], [0, 0, 66.65625, 10], [66.65625, 0, 66.65625, 30], [66.65625, 5, 66.65625, 20], [133.3125, 0, 66.6875, 30], [133.3125, 0, 66.6875, 30], [0, 30, 240, 3]]},+ {"name": "baseline", "rects": [[0, 0, 240, 53], [0, 0, 200, 50], [0, 0, 200, 50], [0, 0, 200, 50], [0, 0, 100, 50], [0, 20, 10, 10], [100, 0, 100, 50], [100, 0, 10, 30], [0, 50, 240, 3]]},+ {"name": "nested", "rects": [[0, 0, 240, 13], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 100, 10], [0, 0, 100, 10], [0, 0, 100, 10], [0, 0, 100, 10], [0, 0, 100, 10], [0, 10, 240, 3]]},+ {"name": "flex-parent", "rects": [[0, 0, 200, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 200, 3]]},+ {"name": "grid-parent", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [0, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [0, 10, 10, 30], [0, 40, 240, 3]]},+ {"name": "wrapping", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 100, 40], [0, 0, 80, 20], [0, 20, 80, 20], [100, 0, 100, 40], [100, 15, 100, 10], [0, 40, 240, 3]]},+ {"name": "percentage-definite-table", "rects": [[0, 0, 240, 240], [0, 0, 200, 120], [0, 0, 200, 60], [0, 0, 200, 60], [0, 0, 200, 60], [0, 25, 10, 10], [0, 60, 200, 60], [0, 60, 200, 60], [0, 60, 200, 60], [0, 85, 10, 10], [0, 120, 240, 3]]},+ {"name": "flex-direct-table", "rects": [[0, 0, 240, 160], [0, 0, 200, 157], [0, 0, 200, 157], [0, 0, 200, 39.25], [0, 0, 200, 39.25], [0, 14.625, 10, 10], [0, 39.25, 200, 117.75], [0, 39.25, 200, 117.75], [0, 83.125, 10, 30], [0, 157, 240, 3]]},+ {"name": "grid-direct-table", "rects": [[0, 0, 240, 160], [0, 0, 200, 157], [0, 0, 200, 157], [0, 0, 200, 39.25], [0, 0, 200, 39.25], [0, 14.625, 10, 10], [0, 39.25, 200, 117.75], [0, 39.25, 200, 117.75], [0, 83.125, 10, 30], [0, 157, 240, 3]]},+ {"name": "caption-flex", "rects": [[0, 0, 240, 160], [0, 0, 200, 157], [0, 0, 200, 20], [0, 20, 200, 137], [0, 20, 200, 34.25], [0, 20, 200, 34.25], [0, 32.125, 10, 10], [0, 54.25, 200, 102.75], [0, 54.25, 200, 102.75], [0, 90.625, 10, 30], [0, 157, 240, 3]]},+ {"name": "empty-groups", "rects": [[0, 0, 240, 23], [0, 0, 200, 20], [0, 0, 200, 0], [0, 0, 200, 20], [0, 0, 200, 20], [0, 0, 200, 20], [0, 0, 10, 20], [0, 20, 200, 0], [0, 20, 240, 3]]},+ {"name": "empty-table", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 100, 240, 3]]},+ {"name": "empty-table-spacing", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 90], [0, 100, 240, 3]]},+ {"name": "empty-groups-spacing", "rects": [[0, 0, 240, 33], [0, 0, 200, 30], [3, 5, 194, 20], [3, 5, 194, 20], [3, 0, 194, 0], [3, 5, 194, 20], [3, 5, 194, 20], [3, 5, 194, 20], [3, 5, 10, 20], [3, 25, 194, 0], [0, 30, 240, 3]]},+ {"name": "empty-groups-spacing-fixed", "rects": [[0, 0, 240, 303], [0, 0, 200, 300], [3, 0, 194, 0], [3, 5, 194, 280], [3, 5, 194, 280], [3, 5, 194, 280], [3, 135, 10, 20], [3, 285, 194, 0], [0, 300, 240, 3]]},+ {"name": "empty-groups-collapsed", "rects": [[0, 0, 240, 31], [0, 0, 200, 28], [2, 2, 196, 0], [2, 2, 196, 24], [2, 2, 196, 24], [2, 2, 196, 24], [4, 4, 10, 20], [2, 26, 196, 0], [0, 28, 240, 3]]},+ {"name": "content-box-table", "rects": [[0, 0, 240, 115], [0, 0, 212, 112], [9, 11, 194, 90], [9, 11, 194, 21.25], [9, 11, 194, 21.25], [9, 16.625, 10, 10], [9, 37.25, 194, 63.75], [9, 37.25, 194, 63.75], [9, 54.125, 10, 30], [0, 112, 240, 3]]},+ {"name": "percent-scroll-auto", "rects": [[0, 0, 240, 203], [0, 0, 200, 200], [0, 0, 200, 200], [0, 0, 200, 200], [0, 0, 200, 200], [0, 0, 200, 200], [0, 0, 200, 200], [0, 200, 240, 3]]},+ {"name": "percent-scroll-table", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 200], [0, 100, 240, 3]]},+ {"name": "percent-scroll-cell", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 200], [0, 100, 240, 3]]},+ {"name": "percent-baseline", "rects": [[0, 0, 240, 103], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 200, 100], [0, 0, 100, 100], [0, 0, 10, 50], [100, 0, 100, 100], [100, 30, 10, 20], [0, 100, 240, 3]]},+ {"name": "cell-padding", "rects": [[0, 0, 240, 63], [0, 0, 200, 60], [0, 0, 200, 60], [0, 0, 200, 60], [0, 0, 100, 60], [10, 25, 80, 10], [100, 0, 100, 60], [110, 40, 80, 10], [0, 60, 240, 3]]},+ {"name": "rtl", "rects": [[0, 0, 240, 43], [0, 0, 200, 40], [0, 0, 200, 40], [0, 0, 200, 10], [0, 0, 200, 10], [190, 0, 10, 10], [0, 10, 200, 30], [0, 10, 200, 30], [190, 10, 10, 30], [0, 40, 240, 3]]}+ ]+ ]+}diff --git a/moli-renderer-v8/tests/fixtures/table-row-heights.html b/moli-renderer-v8/tests/fixtures/table-row-heights.htmlnew file mode 100644index 000000000..9da6afafd--- /dev/null+++ b/moli-renderer-v8/tests/fixtures/table-row-heights.html@@ -0,0 +1,103 @@+<!doctype html>+<meta charset="utf-8">+<style>+html,body { margin:0; padding:0; }+/* The CDP Chromium oracle uses --hide-scrollbars. Keep the numeric fixtures+ independent of the host's classic/overlay scrollbar configuration. */+* { scrollbar-width:none; }+.case { position:absolute; left:0; top:0; width:240px; height:240px; }+table { border-spacing:0; width:200px; table-layout:fixed; }+td,th { padding:0; border:0; font-size:0; line-height:0; }+</style>+<script>+// Font-independent geometry corpus. The adjacent JSON is recorded by+// scripts/table-row-height-chromium-differential.py, not calculated by Moli.+const row = (height, style='') => `<tr style="${style}"><td><div style="height:${height}px;width:10px"></div></td></tr>`;+const cases = [];+function add(name, contents, tableStyle='', ownerStyle='', wrapperStyle='') {+ const owner = document.createElement('div');+ owner.className = 'case';+ owner.style.cssText += ownerStyle;+ owner.innerHTML = `<div class="wrapper"><table style="${tableStyle}">${contents}</table><div class="after" style="height:3px"></div></div>`;+ owner.querySelector('.wrapper').style.cssText = wrapperStyle;+ document.body.append(owner);+ cases.push({name, owner});+}+function buildTableRowHeightCases() {+ for (const tag of ['thead','tbody','tfoot']) {+ add(`${tag}-fixed`, `<${tag} height="80">${row(10)}${row(30)}</${tag}>`);+ add(`${tag}-minimum`, `<${tag} style="height:20px">${row(10)}${row(30)}</${tag}>`);+ }+ add('fixed-and-auto-rows', `<tbody style="height:80px">${row(10,'height:10px')}${row(30)}</tbody>`);+ add('empty-rows', '<tbody style="height:90px"><tr><td></td></tr><tr><td></td></tr><tr><td></td></tr></tbody>');+ add('empty-and-fixed', `<tbody style="height:80px">${row(10,'height:10px')}<tr><td></td></tr></tbody>`);+ add('group-order', `<tfoot style="height:10px">${row(5)}</tfoot><tbody>${row(20)}</tbody><thead style="height:20px">${row(5)}</thead>`, 'height:100px');+ add('multiple-bodies', `<tbody style="height:30px">${row(10)}</tbody><tbody>${row(20)}${row(10)}</tbody>`, 'height:120px');+ add('fixed-bodies', `<tbody style="height:30px">${row(10)}</tbody><tbody style="height:60px">${row(20)}</tbody>`, 'height:180px');+ add('percentage-groups', `<thead style="height:50%">${row(10)}</thead><tbody style="height:50%">${row(60)}</tbody><tfoot style="height:50%">${row(10)}</tfoot>`, 'height:100px');+ add('percentage-rows', `<tbody>${row(10,'height:25%')}${row(10,'height:50%')}${row(10)}</tbody>`, 'height:120px');+ add('percentage-overflow', `<tbody>${row(10,'height:80%')}${row(10,'height:80%')}${row(10)}</tbody>`, 'height:100px');+ add('percentage-fixed-group', `<tbody style="height:100px">${row(10,'height:60%')}${row(10)}</tbody>`);+ add('percentage-auto-table', `<tbody style="height:70%">${row(10,'height:60%')}${row(30)}</tbody>`);+ add('percentage-table', `<tbody style="height:60%">${row(10)}</tbody><tbody>${row(10)}</tbody>`, 'height:50%');+ add('minimum-table', `<tbody>${row(10)}${row(30)}</tbody>`, 'min-height:100px');+ add('rowspan-auto', '<tbody><tr><td rowspan="2"><div style="height:80px"></div></td><td><div style="height:10px"></div></td></tr><tr><td><div style="height:30px"></div></td></tr></tbody>');+ add('rowspan-group', '<tbody style="height:120px"><tr><td rowspan="2"><div style="height:80px"></div></td><td><div style="height:10px"></div></td></tr><tr><td><div style="height:30px"></div></td></tr></tbody>');+ add('rowspan-empty', '<tbody><tr><td rowspan="3" style="height:90px"></td><td></td></tr><tr><td></td></tr><tr><td></td></tr></tbody>');+ add('rowspan-zero', '<tbody style="height:80px"><tr><td rowspan="0"><div style="height:50px"></div></td><td></td></tr><tr><td></td></tr></tbody><tbody><tr><td><div style="height:10px"></div></td></tr></tbody>');+ add('rowspan-crossed', '<tbody style="height:160px"><tr><td rowspan="2" style="height:80px"></td><td></td></tr><tr><td rowspan="2" style="height:100px"></td></tr><tr><td></td></tr></tbody>');+ add('spacing', `<tbody style="height:80px">${row(10)}${row(30)}</tbody><tbody>${row(10)}</tbody>`, 'height:140px;border-spacing:3px 5px;border:2px solid;padding:4px');+ add('collapsed', `<tbody style="height:80px">${row(10)}${row(30)}</tbody>`, 'border-collapse:collapse;border:4px solid');+ add('caption', `<caption style="height:20px"></caption><tbody style="height:80px">${row(10)}${row(30)}</tbody>`);+ for (const kind of ['auto','table','group','row','cell']) {+ add(`percent-child-${kind}`, `<tbody style="${kind==='group'?'height:100px':''}"><tr style="${kind==='row'?'height:100px':''}"><td style="${kind==='cell'?'height:100px':''}"><div style="height:50%;width:10px"><div style="height:10px"></div></div></td></tr></tbody>`, kind==='table'?'height:100px':'');+ }+ add('cell-percentage', '<tbody><tr><td style="height:70%"><div style="height:10px"></div></td></tr><tr><td><div style="height:10px"></div></td></tr></tbody>', 'height:100px');+ add('alignment', '<tbody style="height:100px"><tr><td style="vertical-align:top"><div style="height:10px"></div></td><td style="vertical-align:middle"><div style="height:20px"></div></td><td style="vertical-align:bottom"><div style="height:30px"></div></td></tr></tbody>');+ add('baseline', '<tbody style="height:80px"><tr><td style="vertical-align:baseline;padding-bottom:20px"><span style="display:inline-block;width:10px;height:10px"></span></td><td style="vertical-align:baseline"><span style="display:inline-block;width:10px;height:30px"></span></td></tr></tbody>');+ add('nested', '<tbody style="height:100px"><tr><td><table style="width:100px"><tbody style="height:60px"><tr><td><div style="height:10px"></div></td></tr></tbody></table></td></tr></tbody>');+ add('flex-parent', `<tbody style="height:80px">${row(10)}${row(30)}</tbody>`, '', 'display:flex;align-items:flex-start');+ add('grid-parent', `<tbody style="height:80px">${row(10)}${row(30)}</tbody>`, '', 'display:grid;align-items:start');+ add('wrapping', '<tbody style="height:80px"><tr><td><span style="display:inline-block;width:80px;height:20px"></span><span style="display:inline-block;width:80px;height:20px"></span></td><td><div style="height:10px"></div></td></tr></tbody>');+ add('percentage-definite-table', `<tbody style="height:60%">${row(10)}</tbody><tbody>${row(10)}</tbody>`, 'height:50%', '', 'height:100%');+ add('flex-direct-table', `<tbody style="height:80px">${row(10)}${row(30)}</tbody>`, 'flex:1', '', 'display:flex;flex-direction:column;height:160px');+ add('grid-direct-table', `<tbody style="height:80px">${row(10)}${row(30)}</tbody>`, '', '', 'display:grid;grid-template-rows:1fr 3px;height:160px');+ add('caption-flex', `<caption style="height:20px"></caption><tbody style="height:80px">${row(10)}${row(30)}</tbody>`, 'flex:1', '', 'display:flex;flex-direction:column;height:160px');+ add('empty-groups', `<thead style="height:80px"></thead><tbody>${row(20)}</tbody><tfoot style="height:80px"></tfoot>`);+ add('empty-table', '<tbody style="height:80px"></tbody>', 'height:100px');+ add('empty-table-spacing', '<tbody style="height:80px"></tbody>', 'height:100px;border-spacing:3px 5px');+ add('empty-groups-spacing', `<colgroup><col></colgroup><thead style="height:80px"></thead><tbody>${row(20)}</tbody><tfoot style="height:80px"></tfoot>`, 'border-spacing:3px 5px');+ add('empty-groups-spacing-fixed', `<thead style="height:80px"></thead><tbody>${row(20)}</tbody><tfoot style="height:80px"></tfoot>`, 'height:300px;border-spacing:3px 5px');+ add('empty-groups-collapsed', `<thead style="height:80px"></thead><tbody>${row(20)}</tbody><tfoot style="height:80px"></tfoot>`, 'border-collapse:collapse;border:4px solid rgb(0,0,255)');+ add('content-box-table', `<tbody>${row(10)}${row(30)}</tbody>`, 'height:100px;box-sizing:content-box;padding:4px;border:2px solid;border-spacing:3px 5px');+ for (const kind of ['auto','table','cell']) {+ add(`percent-scroll-${kind}`, `<tbody><tr><td style="${kind==='cell'?'height:100px':''}"><div style="height:100%;overflow:auto"><div style="height:200px"></div></div></td></tr></tbody>`, kind==='table'?'height:100px':'');+ }+ add('percent-baseline', '<tbody><tr><td style="height:100px;vertical-align:baseline"><div style="height:50%;width:10px"></div></td><td style="vertical-align:baseline"><div style="height:20px;width:10px"></div></td></tr></tbody>');+ add('cell-padding', '<tbody style="height:100px"><tr><td style="height:40px;padding:10px;box-sizing:content-box"><div style="height:10px"></div></td><td style="padding:5%;vertical-align:bottom"><div style="height:10px"></div></td></tr></tbody>');+ add('rtl', `<tbody style="height:80px">${row(10)}${row(30)}</tbody>`, 'direction:rtl');+ for (const {owner} of cases) {+ for (const el of owner.querySelectorAll('table,thead,tbody,tfoot,tr,td,th,caption')) {+ el.dataset.originalHeight = el.style.height;+ }+ }+}+function setTableRowHeightPhase(phase) {+ for (const {owner} of cases) {+ owner.style.height = phase===1 ? '320px' : '240px';+ owner.querySelector('table').style.width = phase===1 ? '160px' : '200px';+ for (const el of owner.querySelectorAll('thead,tbody,tfoot')) {+ if (phase===1) el.style.height = '96px';+ else if (phase===2) { el.style.height = 'auto'; el.removeAttribute('height'); }+ else el.style.height = el.dataset.originalHeight;+ }+ }+}+function collectTableRowHeights() {+ return cases.map(({name,owner}) => ({name, rects:Array.from(owner.querySelectorAll('*'), el => {+ const r = el.getBoundingClientRect();+ return [r.x,r.y,r.width,r.height];+ })}));+}+</script>+<body onload="buildTableRowHeightCases()"></body>diff --git a/scripts/table-row-height-chromium-differential.py b/scripts/table-row-height-chromium-differential.pynew file mode 100644index 000000000..e6d19707e--- /dev/null+++ b/scripts/table-row-height-chromium-differential.py@@ -0,0 +1,64 @@+#!/usr/bin/env python3+"""Record/verify the native table row-height corpus against Chromium via CDP."""+import argparse+import asyncio+import importlib.util+import json+from pathlib import Path+import sys++ROOT = Path(__file__).resolve().parents[1]+sys.path.insert(0, str(ROOT / "moli-benchmark"))+spec = importlib.util.spec_from_file_location(+ "table_height_oracle", ROOT / "scripts/layout-phase4-chromium-differential.py"+)+oracle = importlib.util.module_from_spec(spec)+sys.modules[spec.name] = oracle+spec.loader.exec_module(oracle)+FIXTURES = ROOT / "moli-renderer-v8/tests/fixtures"+EXPECTED = FIXTURES / "table-row-heights.chromium.json"+++async def measure(client, session_id, case, *, record):+ _, messages = await oracle.command(client, "Page.navigate", {+ "url": "data:text/html;charset=utf-8," + oracle.urllib.parse.quote(case.html)+ }, session_id=session_id)+ await oracle.wait_for_load(client, session_id, messages)+ phases = []+ for phase in range(3):+ result, _ = await oracle.command(client, "Runtime.evaluate", {+ "expression": f"setTableRowHeightPhase({phase});collectTableRowHeights()",+ "returnByValue": True,+ }, session_id=session_id)+ if result.get("exceptionDetails"):+ raise RuntimeError(result["exceptionDetails"])+ phases.append(result["result"]["value"])+ if not record:+ expected = json.loads(EXPECTED.read_text())["phases"]+ for phase, (actual_cases, expected_cases) in enumerate(zip(phases, expected, strict=True)):+ for actual, expected_case in zip(actual_cases, expected_cases, strict=True):+ assert actual["name"] == expected_case["name"]+ oracle.assert_rects(f"phase {phase}: {actual['name']}", actual["rects"], expected_case["rects"])+ return phases+++def main():+ parser = argparse.ArgumentParser(description=__doc__)+ parser.add_argument("--chromium", type=Path, default=oracle.DEFAULT_CHROMIUM)+ parser.add_argument("--record", action="store_true")+ args = parser.parse_args()+ html = (FIXTURES / "table-row-heights.html").read_text()+ oracle.fixture_cases = lambda: (oracle.Case("table-row-heights", 800, 600, html, ()),)+ oracle.measure_case = measure+ report = asyncio.run(oracle.run(args.chromium, record=args.record))+ phases = report["cases"]["table-row-heights"]+ if args.record:+ # One case per line keeps the numeric oracle compact and reviewable.+ header = json.dumps({"product": report["product"], "revision": report["revision"]}, indent=2)[:-2]+ body = ",\n".join(" [\n" + ",\n".join(" " + json.dumps(case) for case in phase) + "\n ]" for phase in phases)+ EXPECTED.write_text(header + ',\n "phases": [\n' + body + '\n ]\n}\n')+ print(json.dumps({"status": report["status"], "product": report["product"], "cases": len(phases[0]), "phases": len(phases)}))+++if __name__ == "__main__":+ main()