changeset 906:e766286e0884

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
author Johannes Hofmann <Johannes.Hofmann@gmx.de>
date Sat, 07 Feb 2009 09:54:28 +0100
parents 45830a274847
children 35054b4e3b1b
files src/styleengine.cc
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/styleengine.cc	Fri Feb 06 13:24:48 2009 -0300
+++ b/src/styleengine.cc	Sat Feb 07 09:54:28 2009 +0100
@@ -415,10 +415,13 @@
    // 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 =