Skip to content
This repository has been archived by the owner on Mar 13, 2018. It is now read-only.

Commit

Permalink
properly scope host rules when strictStyling option is used.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Nov 19, 2013
1 parent b24f481 commit f5c280f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ShadowCSS.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f5c280f

Please sign in to comment.