Closed Bug 1183521 Opened 11 years ago Closed 11 years ago

Animation.effect should return the same object even after an animation is updated

Categories

(Core :: DOM: Animation, defect)

defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox42 --- affected

People

(Reporter: birtles, Unassigned)

References

Details

Attachments

(1 file)

Although I haven't verified this, I'm pretty sure that this currently happens: elem.style.animation = "anim 10s"; var anim = elem.getAnimations()[0]; var effect = anim.effect; elem.style.animation = "anim 10s forwards"; console.log(anim === elem.getAnimations()[0]); // Displays "true" console.log(effect === elem.getAnimations()[0].effect); // Displays "false" Before we go extending the KeyframeEffect(ReadOnly) interface too much, we should probably fix the object identity issue.
Blocks: 1198705
Actually, I think this might be invalid. I think we *do* preserve the existing effect.
I tested locally and this works. There's even a comment in the code mentioning that we take care of this.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
Attached file Test case —
For reference, here is the test I used to verify this.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: