css: support for @keyframes 'to' and 'from'
This commit is contained in:
parent
762f5ab61d
commit
36cc729f5f
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ var Parser = class Parser {
|
|||
|
||||
if (scopedCss.indexOf(prefix) > -1) {
|
||||
|
||||
if (scopedCss.indexOf('@keyframes') > -1) scopedCss = scopedCss.replace(new RegExp(prefix + '(\\s+[0-9]+%)', 'g'), '$1')
|
||||
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)
|
||||
|
||||
widgetContainer.setAttribute('id', widgetInner.hash)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue