diff options
-rw-r--r-- | src/styleengine.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/styleengine.cc b/src/styleengine.cc index 7d1eb773..3831fb3b 100644 --- a/src/styleengine.cc +++ b/src/styleengine.cc @@ -352,6 +352,10 @@ Style * StyleEngine::style0 (CssPropertyList *nonCssProperties) { StyleAttrs attrs = *stack->getRef (stack->size () - 2)->style; // reset values that are not inherited according to CSS attrs.resetValues (); + + if (stack->getRef (stack->size () - 2)->inheritBackgroundColor) + attrs.backgroundColor = + stack->getRef (stack->size () - 2)->style->backgroundColor; cssContext->apply (&props, this, tagStyleProps, nonCssProperties); |