diff --git a/src/browser/js/app/widgets/common/widget.js b/src/browser/js/app/widgets/common/widget.js
index 556de72c..ea36ad88 100644
--- a/src/browser/js/app/widgets/common/widget.js
+++ b/src/browser/js/app/widgets/common/widget.js
@@ -495,12 +495,12 @@ class Widget extends EventEmitter {
scopedCss = scopeCss(this.getProp('css'), prefix),
unScopedCss = ''
- this.getProp('css').replace(/^[^\{\}]*/m, m => unScopedCss += m)
+ this.getProp('css').replace(/\{[^\}]*\}/g).replace(/^.*\:.*;/m, m => unScopedCss += m)
if (scopedCss.indexOf('@keyframes') > -1) scopedCss = scopedCss.replace(new RegExp(prefix + '\\s+([0-9]+%|to|from)', 'g'), ' $1')
if (scopedCss.indexOf('&') > -1) scopedCss = scopedCss.replace(new RegExp(prefix + '\\s&', 'g'), prefix)
- var style = DOM.create(``),
+ var style = DOM.create(``),
oldStyle = DOM.get(this.container, '> style')[0]
if (oldStyle) {