Unexpected AnimationEvent.elapsedTime if the delay is negative infinite
Categories
(Core :: CSS Transitions and Animations, defect)
Tracking
()
People
(Reporter: boris, Unassigned)
References
()
Details
Attachments
(1 file, 1 obsolete file)
|
940 bytes,
text/html
|
Details |
If the animation-delay is negative infinite, e.g. animation-delay: calc(-infinite * 1s), our ComputedTiming::mActiveTime may be an overflow value per this: result.mActiveTime = localTime - aTiming.Delay();.
No matter what value of localTime, TimeDuration doesn't handle inf properly so we may get a very small negative value of mActiveTime because it overflows.
Also, we use this mActiveTime as the elapsed time to queue the cancel event, and so the result of AnimationEvent.elapsedTime API looks incorrect (and different from other browsers).
Google Chrome returns 0 and Safari returns Infinity. All browser have different results. Gecko returns the very weird negative value because of the overflow. I think we should avoid the overflow at least, even if the spec doesn't define this edge case.
| Reporter | ||
Updated•2 months ago
|
| Reporter | ||
Comment 1•2 months ago
|
||
Description
•