diff --git a/src/ShadowCSS.js b/src/ShadowCSS.js index fd8425d..a8dbfee 100644 --- a/src/ShadowCSS.js +++ b/src/ShadowCSS.js @@ -441,7 +441,7 @@ var ShadowCSS = { cssText += this.propertiesFromRule(rule) + '\n}\n\n'; } else if (rule.media) { cssText += '@media ' + rule.media.mediaText + ' {\n'; - cssText += this.scopeRules(rule.cssRules, name); + cssText += this.scopeRules(rule.cssRules, name, typeExtension); cssText += '\n}\n\n'; } else if (rule.cssText) { cssText += rule.cssText + '\n\n';