src/Css.js
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;
}
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;
}
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 ; }
Create a new stylesheet, optionally scoped to a DOM element.
Create a new stylesheet optionally scoped to a DOM element .