diff --git a/src/standard/x-styling.html b/src/standard/x-styling.html index 2aaf734d41..7707d73c27 100644 --- a/src/standard/x-styling.html +++ b/src/standard/x-styling.html @@ -52,6 +52,10 @@ * @return {String} the computed value */ getComputedStyleValue: function(property) { + // refresh the style properties for this node + if (!nativeVariables && !this._styleProperties) { + this._computeStyleProperties(); + } return !nativeVariables && this._styleProperties && this._styleProperties[property] || getComputedStyle(this).getPropertyValue(property); diff --git a/test/unit/styling-cross-scope-var.html b/test/unit/styling-cross-scope-var.html index b37482cede..324ab3530a 100644 --- a/test/unit/styling-cross-scope-var.html +++ b/test/unit/styling-cross-scope-var.html @@ -857,6 +857,30 @@ + + + + + + + + +