summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 =