diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2011-01-08 17:34:45 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2011-01-08 17:34:45 +0000 |
commit | b85fcf590fde253bb6449b6076488b5ad64e1216 (patch) | |
tree | 079462b96bee6b289116759334ea8a1d79ce98ee /render | |
parent | 7cde13feeec4bf1240950bdc845d60aec8f819c6 (diff) | |
download | netsurf-b85fcf590fde253bb6449b6076488b5ad64e1216.tar.gz netsurf-b85fcf590fde253bb6449b6076488b5ad64e1216.tar.bz2 |
Table top/bottom margin is 0px when computed value is 'auto'.
svn path=/trunk/netsurf/; revision=11257
Diffstat (limited to 'render')
-rw-r--r-- | render/layout.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/render/layout.c b/render/layout.c index bd951a252..3c610d752 100644 --- a/render/layout.c +++ b/render/layout.c @@ -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); |