aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-01-11 21:52:49 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2010-01-11 21:52:49 +0100
commit61f64402d7f4efbff0e2c8e1d0f38787365b7138 (patch)
treeb099619d9005a3bf167ba6f94d9e08437f429e41
parentaa124a268e84eb505dfc02c634a15ed73dbcd120 (diff)
add quirk to reset font properties in tables (fixes e.g. gmail)
-rw-r--r--ChangeLog1
-rw-r--r--src/css.cc8
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 95c25a92..f5f4ad5b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -16,6 +16,7 @@ dillo-2.2 [??]
- Add support for CSS property list-style-position.
- Support border-width: thin | medium | thick.
- Fix CSS_SHORTHAND_DIRECTIONS case in CssParser.
+ - Add quirk to reset font properties in tables (fixes e.g. gmail).
Patch: Johannes Hofmann
+- Cleaned up system includes in dpid directory.
- Fixed CustProgressBox() for systems without weak symbols.
diff --git a/src/css.cc b/src/css.cc
index 8d8df661..1b81ea7c 100644
--- a/src/css.cc
+++ b/src/css.cc
@@ -584,7 +584,13 @@ void CssContext::buildUserAgentStyle () {
"td, th {border-style: inset; padding: 2px}"
"thead, tbody, tfoot {vertical-align: middle}"
"th {font-weight: bolder; text-align: center}"
- "code, tt, pre, samp, kbd {font-family: monospace}";
+ "code, tt, pre, samp, kbd {font-family: monospace}"
+ /* WORKAROUND: Reset font properties in tables as some
+ * some pages rely on it (e.g. gmail).
+ * http://developer.mozilla.org/En/Fixing_Table_Inheritance_in_Quirks_Mode
+ * has a detailed description of the issue.
+ */
+ "table, caption {font-size: medium; font-weight: normal}";
CssParser::parse (NULL, NULL, this, cssBuf, strlen (cssBuf),
CSS_ORIGIN_USER_AGENT);