summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2022-10-17 12:46:45 +0100
committerMichael Drake <tlsa@netsurf-browser.org>2022-10-23 17:25:51 +0100
commitbf7a02b0a2d9e6b853792f9e195f438a09ac5bc4 (patch)
tree84cb57da3863c7354bd59b4b6771fcfb7ffa3571
parente58f13e5d5743986f293fba2fc3c498c958da8a3 (diff)
downloadnetsurf-bf7a02b0a2d9e6b853792f9e195f438a09ac5bc4.tar.gz
netsurf-bf7a02b0a2d9e6b853792f9e195f438a09ac5bc4.tar.bz2
WIP: Work out how flex container table cells should work
-rw-r--r--content/handlers/html/table.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/content/handlers/html/table.c b/content/handlers/html/table.c
index 4ffcceab9..5e5d1cc1a 100644
--- a/content/handlers/html/table.c
+++ b/content/handlers/html/table.c
@@ -836,8 +836,12 @@ table_calculate_column_types(const css_unit_ctx *unit_len_ctx, struct box *table
enum css_width_e type;
css_fixed value = 0;
css_unit unit = CSS_UNIT_PX;
-
- assert(cell->type == BOX_TABLE_CELL);
+if (cell->type != BOX_TABLE_CELL && cell->type != BOX_FLEX) {
+ box_dump(stderr, table, 0, false);
+ printf("cell %p type: %u\n", cell, cell->type);
+}
+ assert(cell->type == BOX_TABLE_CELL ||
+ cell->type == BOX_FLEX);
assert(cell->style);
if (cell->columns != 1)