Chromium Code Reviews
DescriptionFix flaky negative-playback-rate animation test.
The animation-state-changes-negative-playback-rate.html layout test
flakily fails due to floating point errors. When setting
animation.startTime to (document.timeline.currentTime + duration),
a floating point difference can sometimes cause this to be set past
the point where the animation would be finished, thus producing
an animation that was not running. This patch prevents this from
happening by setting the startTime halfway through the animation
instead of at the end.
BUG=593982
Committed: https://crrev.com/02869b24c40dbab8971b6c6fea16040deae8333b
Cr-Commit-Position: refs/heads/master@{#384422}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Style fix #
Messages
Total messages: 16 (7 generated)
|
||||||||||||||||||||||||||||