aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--js/controllers/styles-controller.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js
index afd298c9..51b81204 100644
--- a/js/controllers/styles-controller.js
+++ b/js/controllers/styles-controller.js
@@ -179,6 +179,10 @@ var stylesController = exports.StylesController = Montage.create(Component, {
179 rule = stylesheet.rules[index]; 179 rule = stylesheet.rules[index];
180 180
181 ///// attach specificity to rule object 181 ///// attach specificity to rule object
182 // if rule is css keyframes, return rule and don't attach specificity
183 if (rule instanceof WebKitCSSKeyframesRule) {
184 return rule;
185 }
182 rule[this.CONST.SPECIFICITY_KEY] = this.getSpecificity(rule.selectorText); 186 rule[this.CONST.SPECIFICITY_KEY] = this.getSpecificity(rule.selectorText);
183 187
184 ///// return the rule we just inserted 188 ///// return the rule we just inserted