aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/style/keyframes.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/components/style/keyframes.rs b/components/style/keyframes.rs
index eca73f1f848..07de56158ea 100644
--- a/components/style/keyframes.rs
+++ b/components/style/keyframes.rs
@@ -254,7 +254,9 @@ fn get_animated_properties(keyframe: &Keyframe) -> Vec<TransitionProperty> {
let mut ret = vec![];
// NB: declarations are already deduplicated, so we don't have to check for
// it here.
- for &(ref declaration, _) in keyframe.block.read().declarations.iter() {
+ for &(ref declaration, importance) in keyframe.block.read().declarations.iter() {
+ assert!(!importance.important());
+
if let Some(property) = TransitionProperty::from_declaration(declaration) {
ret.push(property);
}