mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-11-28 09:13:08 +03:00
Fix table border=0.
svn path=/trunk/netsurf/; revision=9544
This commit is contained in:
parent
ca8a2b5af0
commit
d8f4c0d029
11
css/select.c
11
css/select.c
@ -1608,13 +1608,14 @@ css_error node_presentational_hint(void *pw, void *node,
|
||||
if (width == NULL)
|
||||
return CSS_PROPERTY_NOT_SET;
|
||||
|
||||
if (is_table_cell) {
|
||||
hint->data.length.value = INTTOFIX(1);
|
||||
hint->data.length.unit = CSS_UNIT_PX;
|
||||
hint->status = CSS_BORDER_WIDTH_WIDTH;
|
||||
} else if (parse_dimension((const char *) width, false,
|
||||
if (parse_dimension((const char *) width, false,
|
||||
&hint->data.length.value,
|
||||
&hint->data.length.unit)) {
|
||||
if (is_table_cell &&
|
||||
INTTOFIX(1) <
|
||||
hint->data.length.value)
|
||||
hint->data.length.value = INTTOFIX(1);
|
||||
hint->data.length.unit = CSS_UNIT_PX;
|
||||
hint->status = CSS_BORDER_WIDTH_WIDTH;
|
||||
} else {
|
||||
xmlFree(width);
|
||||
|
Loading…
Reference in New Issue
Block a user