Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent cubic bezier from infinite-looping #476

Merged
merged 1 commit into from
Jul 26, 2016
Merged

Prevent cubic bezier from infinite-looping #476

merged 1 commit into from
Jul 26, 2016

Conversation

suzyh
Copy link
Contributor

@suzyh suzyh commented Jul 26, 2016

An infinite loop in the cubic bezier function in src/timing-utilities.js was
causing us to skip interfaces/KeyframeEffect/effect-easing.html from the
web-platform-tests. This patch changes the loop condition to ensure it exits,
in line with the CubicBezier implementation in Chromium.

In order to achieve the accuracy required by the web-platform-tests
expectations, the epsilon value in the algorithm is also reduced by an order of
magnitude.

An infinite loop in the cubic bezier function in src/timing-utilities.js was
causing us to skip interfaces/KeyframeEffect/effect-easing.html from the
web-platform-tests. This patch changes the loop condition to ensure it exits,
in line with the CubicBezier implementation in Chromium.

In order to achieve the accuracy required by the web-platform-tests
expectations, the epsilon value in the algorithm is also reduced by an order of
magnitude.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants