summaryrefslogtreecommitdiff
path: root/src/table.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-01 16:12:16 +0200
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-10-01 16:12:16 +0200
commit47a9e5206c2f6d7775198533a70cb40013b467f2 (patch)
tree4b02a821d99ac8aeb4750e4ad9ad1a2c2c25ef48 /src/table.cc
parent43bba3831700cf45fab30c913e6af38a4e67d9ef (diff)
rework border-width handling
The initial value of border-width-* is "medium" not 0 (see http://www.w3.org/TR/CSS2/box.html#border-width-properties). Redo the border handling for tables to deal with this.
Diffstat (limited to 'src/table.cc')
-rw-r--r--src/table.cc16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/table.cc b/src/table.cc
index 43304206..eb6a806a 100644
--- a/src/table.cc
+++ b/src/table.cc
@@ -60,6 +60,14 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize)
cssLength);
props.set (CSS_PROPERTY_BORDER_RIGHT_WIDTH, CSS_TYPE_LENGTH_PERCENTAGE,
cssLength);
+ props.set (CSS_PROPERTY_BORDER_TOP_STYLE, CSS_TYPE_ENUM,
+ BORDER_OUTSET);
+ props.set (CSS_PROPERTY_BORDER_BOTTOM_STYLE, CSS_TYPE_ENUM,
+ BORDER_OUTSET);
+ props.set (CSS_PROPERTY_BORDER_LEFT_STYLE, CSS_TYPE_ENUM,
+ BORDER_OUTSET);
+ props.set (CSS_PROPERTY_BORDER_RIGHT_STYLE, CSS_TYPE_ENUM,
+ BORDER_OUTSET);
}
if (cellspacing != -1) {
@@ -103,6 +111,14 @@ void Html_tag_open_table(DilloHtml *html, const char *tag, int tagsize)
CSS_TYPE_LENGTH_PERCENTAGE, cssLength);
table_cell_props->set (CSS_PROPERTY_BORDER_RIGHT_WIDTH,
CSS_TYPE_LENGTH_PERCENTAGE, cssLength);
+ table_cell_props->set (CSS_PROPERTY_BORDER_TOP_STYLE,
+ CSS_TYPE_ENUM, BORDER_INSET);
+ table_cell_props->set (CSS_PROPERTY_BORDER_BOTTOM_STYLE,
+ CSS_TYPE_ENUM, BORDER_INSET);
+ table_cell_props->set (CSS_PROPERTY_BORDER_LEFT_STYLE,
+ CSS_TYPE_ENUM, BORDER_INSET);
+ table_cell_props->set (CSS_PROPERTY_BORDER_RIGHT_STYLE,
+ CSS_TYPE_ENUM, BORDER_INSET);
}
if (cellpadding != -1) {