diff options
author | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-01-11 21:52:49 +0100 |
---|---|---|
committer | Johannes Hofmann <Johannes.Hofmann@gmx.de> | 2010-01-11 21:52:49 +0100 |
commit | 61f64402d7f4efbff0e2c8e1d0f38787365b7138 (patch) | |
tree | b099619d9005a3bf167ba6f94d9e08437f429e41 /src | |
parent | aa124a268e84eb505dfc02c634a15ed73dbcd120 (diff) |
add quirk to reset font properties in tables (fixes e.g. gmail)
Diffstat (limited to 'src')
-rw-r--r-- | src/css.cc | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); |