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)
Core
DOM: Animation
Tracking
()
RESOLVED
INVALID
| Tracking | Status | |
|---|---|---|
| firefox42 | --- | affected |
People
(Reporter: birtles, Unassigned)
References
Details
Attachments
(1 file)
|
922 bytes,
text/html
|
Details |
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.
| Reporter | ||
Comment 1•11 years ago
|
||
Actually, I think this might be invalid. I think we *do* preserve the existing effect.
| Reporter | ||
Comment 2•11 years ago
|
||
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
| Reporter | ||
Comment 3•11 years ago
|
||
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.
Description
•