mirror of
https://github.com/servo/servo.git
synced 2025-10-01 09:09:15 +01:00
Auto merge of #18572 - hiikezoe:immportant-in-keyframe, r=emilio
Handle !important in keyframe <!-- Please describe your changes on the following line: --> https://bugzilla.mozilla.org/show_bug.cgi?id=1400926 --- - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18572) <!-- Reviewable:end -->
This commit is contained in:
commit
46ae11b5d0
4 changed files with 54 additions and 10 deletions
|
@ -3609,10 +3609,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