From fab2ed7832c6eaca5cfb5035c4449b73e7f700f2 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Mon, 13 Jul 2015 15:42:40 -0700 Subject: [PATCH] Fixes #2078: when computing custom style properties, make sure the styling scope is valid when the element is attached to a shadowRoot whose host is not a Polymer element. --- src/lib/style-util.html | 6 +- src/standard/x-styling.html | 15 ++- test/runner.html | 1 + .../styling-cross-scope-unknown-host.html | 121 ++++++++++++++++++ 4 files changed, 139 insertions(+), 4 deletions(-) create mode 100644 test/unit/styling-cross-scope-unknown-host.html diff --git a/src/lib/style-util.html b/src/lib/style-util.html index 6af6a5f208..8f3e829a4c 100644 --- a/src/lib/style-util.html +++ b/src/lib/style-util.html @@ -29,8 +29,10 @@ }, forRulesInStyles: function(styles, callback) { - for (var i=0, l=styles.length, s; (i + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +