mirror of
https://github.com/servo/servo.git
synced 2025-10-01 17:19:16 +01:00
Filter out !important property in keyframes for stylo.
This commit is contained in:
parent
c6381c66a0
commit
a940999795
3 changed files with 48 additions and 6 deletions
|
@ -3596,10 +3596,9 @@ pub extern "C" fn Servo_StyleSet_GetKeyframesForName(raw_data: RawServoStyleSetB
|
|||
},
|
||||
KeyframesStepValue::Declarations { ref block } => {
|
||||
let guard = block.read_with(&guard);
|
||||
// Filter out non-animatable properties.
|
||||
// Filter out non-animatable properties and properties with !important.
|
||||
let animatable =
|
||||
guard.declarations()
|
||||
.iter()
|
||||
guard.normal_declaration_iter()
|
||||
.filter(|declaration| declaration.is_animatable());
|
||||
|
||||
for declaration in animatable {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue