From f5c280fbaf8eb89d1caa3a0efb5c3962bcac18be Mon Sep 17 00:00:00 2001 From: Steve Orvell Date: Mon, 18 Nov 2013 17:23:59 -0800 Subject: [PATCH] properly scope host rules when strictStyling option is used. --- src/ShadowCSS.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ShadowCSS.js b/src/ShadowCSS.js index 1f0d241..fd8425d 100644 --- a/src/ShadowCSS.js +++ b/src/ShadowCSS.js @@ -454,8 +454,9 @@ var ShadowCSS = { parts.forEach(function(p) { p = p.trim(); if (this.selectorNeedsScoping(p, name, typeExtension)) { - p = strict ? this.applyStrictSelectorScope(p, name) : - this.applySimpleSelectorScope(p, name, typeExtension); + p = (strict && !p.match(polyfillHostNoCombinator)) ? + this.applyStrictSelectorScope(p, name) : + this.applySimpleSelectorScope(p, name, typeExtension); } r.push(p); }, this);