    for (var i=0, l=sheets.length, s; (i<l) && (s=sheets[i]); i++) {
        this.scopeSheet(s);
      }
    },

    scopeSheet: function(sheet) {
      var owner = sheet.ownerNode;
      var cssText = transformer.scopeCssText(this.rulesToCss(sheet.cssRules));
      if (owner.localName === 'link') {
        var style = document.createElement('style');
        style.textContent = cssText;
        owner.parentNode.insertBefore(style, owner);
        owner.parentNode.removeChild(owner);
      } else {
        