From 36cc729f5ff1a6d5c745989c52f9f4c5b7e983bd Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Mon, 12 Feb 2018 15:40:16 +0100 Subject: [PATCH] css: support for @keyframes 'to' and 'from' --- src/browser/js/app/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/browser/js/app/parser.js b/src/browser/js/app/parser.js index 279bf395..89748814 100644 --- a/src/browser/js/app/parser.js +++ b/src/browser/js/app/parser.js @@ -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)