[csswg-drafts] [CSS easing function] No precision requirement or recommended algorithm for cubic Beziers (#4014)

kevers-google has just created a new issue for https://github.com/w3c/csswg-drafts:

== [CSS easing function] No precision requirement or recommended algorithm for cubic Beziers ==
https://drafts.csswg.org/css-easing-1/#cubic-bezier-easing-functions

The spec states "The evaluation of this curve is covered in many sources such as [FUND-COMP-GRAPHICS]." No recommended algorithm or required error tolerance is provided. Chrome is presently failing several WPT tests with easing functions due to a performance vs precision trade off in numerically estimating Bezier outputs.  It would be nice to lock down the precision requirements and update tolerances on test expectations accordingly.

It would also be nice to have a recommended algorithm for root finding: whether it be the bisection method, a Newton - bisection hybrid, or Cardano's method to name a few.  Estimating the error in the output function for a given tolerance in the root estimation is non-trivial. Requiring full precision may be prohibitively expensive.


Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4014 using your GitHub account

Received on Thursday, 6 June 2019 19:31:45 UTC