mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-11 23:14:13 +03:00
Table top/bottom margin is 0px when computed value is 'auto'.
svn path=/trunk/netsurf/; revision=11257
This commit is contained in:
parent
7cde13feee
commit
b85fcf590f
@ -3445,6 +3445,12 @@ bool layout_table(struct box *table, int available_width,
|
||||
}
|
||||
}
|
||||
|
||||
/* Top and bottom margins of 'auto' are set to 0. CSS2.1 10.6.3 */
|
||||
if (table->margin[TOP] == AUTO)
|
||||
table->margin[TOP] = 0;
|
||||
if (table->margin[BOTTOM] == AUTO)
|
||||
table->margin[BOTTOM] = 0;
|
||||
|
||||
free(col);
|
||||
free(excess_y);
|
||||
free(row_span);
|
||||
|
Loading…
Reference in New Issue
Block a user