From 61f64402d7f4efbff0e2c8e1d0f38787365b7138 Mon Sep 17 00:00:00 2001 From: Johannes Hofmann Date: Mon, 11 Jan 2010 21:52:49 +0100 Subject: add quirk to reset font properties in tables (fixes e.g. gmail) --- src/css.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/css.cc') 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); -- cgit v1.2.3