summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-07 09:54:28 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2009-02-07 09:54:28 +0100
commit175197dc885e13446fcc8662fd58a58dc46ad9d3 (patch)
treef63a2e768b1ddb6e8b9c9aa28cae24456549c691
parentfd6ff6812d018df008ca4ec8a2b3992cc962d3dd (diff)
inherit valign when inheritBackgroundColor is set
This fixes <sup><u> not up </u> up </sup>, but is not the real solution. Things like <sup> up <sup> upper </sup></sup> still don't work, but they didn't work in dillo-2.0 either. Noticed by: corvid
-rw-r--r--src/styleengine.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc
index b48b6e2e..369058df 100644
--- a/src/styleengine.cc
+++ b/src/styleengine.cc
@@ -415,10 +415,13 @@ Style * StyleEngine::style0 (CssPropertyList *nonCssProperties) {
// reset values that are not inherited according to CSS
attrs.resetValues ();
- if (stack->getRef (stack->size () - 2)->inheritBackgroundColor)
+ if (stack->getRef (stack->size () - 2)->inheritBackgroundColor) {
attrs.backgroundColor =
stack->getRef (stack->size () - 2)->style->backgroundColor;
+ attrs.valign = stack->getRef (stack->size () - 2)->style->valign;
+ }
+
// parse style information from style="" attribute, if it exists
if (styleAttribute && prefs.parse_embedded_css)
styleAttributeProps =