code: function makeSheet(scope) {
    var style = document.createElement('style');
    document.head.appendChild(style);
    var sheet = style.sheet;
  
    if (scope) {
      style.setAttribute('scoped', "scoped");
      if (!scopedSupported) {
        scope.dataset[scopedStyleIdsProp] = (scope.dataset[scopedStyleIdsProp] || "") + " " +
          (sheet.scopedStyleId = makeScopedStyleId(scopedStyleId++));
      }
    }
  
    return sheet;
  }
docs: Create a new stylesheet, optionally scoped to a DOM element.