mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 04:27:12 +02:00
When converting rotate transform functions `sin` and `cos` can sometimes be inaccurate. To avoid these inaccuracies we: - Mod the angle to minimise inaccuracies in the first place. - Discard tiny (smaller than epsilon) values returned by `sin` and `cos` as inaccuracies. This is in line with other browsers (e.g. Gecko and WebKit).