| Index: Source/core/css/resolver/StyleResolver.cpp
|
| diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
|
| index bc446bcf45582d77dc6849495838e54afc89f6dd..fb425826acda9bf8fcaa030dad2285f61a35a589 100644
|
| --- a/Source/core/css/resolver/StyleResolver.cpp
|
| +++ b/Source/core/css/resolver/StyleResolver.cpp
|
| @@ -2343,10 +2343,13 @@ void StyleResolver::resolveVariables(CSSPropertyID id, CSSValue* value, Vector<s
|
|
|
| for (unsigned i = 0; i < resultSet->propertyCount(); i++) {
|
| StylePropertySet::PropertyReference property = resultSet->propertyAt(i);
|
| - if (property.id() != CSSPropertyVariable && hasVariableReference(property.value()))
|
| + if (property.id() != CSSPropertyVariable && hasVariableReference(property.value())) {
|
| resolveVariables(property.id(), property.value(), knownExpressions);
|
| - else
|
| + } else {
|
| applyProperty(property.id(), property.value());
|
| + // All properties become dependent their parent style when they use variables.
|
| + m_state.style()->setHasExplicitlyInheritedProperties();
|
| + }
|
| }
|
| }
|
|
|
|
|