StyleElement cssTextToScopeStyle(String cssText, String scopeDescriptor) { if (cssText == '') return null; return new StyleElement() ..text = cssText ..attributes[_STYLE_SCOPE_ATTRIBUTE] = '$name-$scopeDescriptor'; }