summaryrefslogtreecommitdiff
path: root/render/table.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/table.c')
-rw-r--r--render/table.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/render/table.c b/render/table.c
index b2fa4cd53..baa052e87 100644
--- a/render/table.c
+++ b/render/table.c
@@ -67,6 +67,7 @@ bool table_calculate_column_types(struct box *table)
for (i = 0; i != table->columns; i++) {
col[i].type = COLUMN_WIDTH_UNKNOWN;
col[i].width = 0;
+ col[i].positioned = true;
}
/* 1st pass: cells with colspan 1 only */
@@ -80,6 +81,11 @@ bool table_calculate_column_types(struct box *table)
continue;
i = cell->start_column;
+ if (cell->style->position != CSS_POSITION_ABSOLUTE &&
+ cell->style->position != CSS_POSITION_FIXED) {
+ col[i].positioned = false;
+ }
+
/* fixed width takes priority over any other width type */
if (col[i].type != COLUMN_WIDTH_FIXED &&
cell->style->width.width == CSS_WIDTH_LENGTH) {