From 61406a8ac3f7b4be917f2d471db61d1271749eec Mon Sep 17 00:00:00 2001 From: PhistucK Date: Tue, 11 Apr 2017 15:36:55 +0300 Subject: [PATCH] Added a standard constant for keyframes rules The code was only looking for prefixed constants, but the standard constant is supported by all of the browsers for quite some time. --- src/Modules/CSS/csskeyframehelper.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Modules/CSS/csskeyframehelper.js b/src/Modules/CSS/csskeyframehelper.js index 815e7e99..46e073dc 100644 --- a/src/Modules/CSS/csskeyframehelper.js +++ b/src/Modules/CSS/csskeyframehelper.js @@ -132,7 +132,8 @@ []; for (var j = rs.length - 1; j >= 0; j--) { - if ( ( rs[j].type === window.CSSRule.WEBKIT_KEYFRAMES_RULE || + if ( ( rs[j].type === window.CSSRule.KEYFRAMES_RULE || + rs[j].type === window.CSSRule.WEBKIT_KEYFRAMES_RULE || rs[j].type === window.CSSRule.MOZ_KEYFRAMES_RULE ) && rs[j].name === name) { return { @@ -159,7 +160,8 @@ []; for (var j = rs.length - 1; j >= 0; j--) { - if ( ( rs[j].type === window.CSSRule.WEBKIT_KEYFRAMES_RULE || + if ( ( rs[j].type === window.CSSRule.KEYFRAMES_RULE || + rs[j].type === window.CSSRule.WEBKIT_KEYFRAMES_RULE || rs[j].type === window.CSSRule.MOZ_KEYFRAMES_RULE ) && rs[j].name === name) { return rs[j];