Closed Bug 1838106 Opened 2 years ago Closed 1 years ago

WPT css/css-transforms/animation/rotate-composition.html fails in Firefox

Categories

(Core :: CSS Transitions and Animations, defect)

defect

Tracking

()

RESOLVED FIXED
119 Branch
Tracking Status
firefox119 --- fixed

People

(Reporter: dholbert, Assigned: boris)

References

(Blocks 1 open bug, )

Details

Attachments

(1 file)

We fail 11 subtests in this WPT:
https://wpt.fyi/results/css/css-transforms/animation/rotate-composition.html

Direct link to test:
http://wpt.live/css/css-transforms/animation/rotate-composition.html

All the failures seem to be due to us getting a different angle vs. what the test expects. E.g. 10deg vs 50deg in the first failure:

!EQ("0.27 0.53 0.8 10deg",
    "0.27 0.53 0.8 50deg")

Basically, if two normalized direction vectors are the same, we do
interpolation on the angle only. However, after normalization, there may
be some differences because of the floating-point precision, even though
these two vectors have the same direction. Therefore we have to add an
epsilon to compare these two vectors.

Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED
Attachment #9350941 - Attachment description: Bug 1838106 - Use approx_eq_eps() to compare two direction vectors. → Bug 1838106 - Use approx_eq() to compare two direction vectors.
Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e459a98f336c Use approx_eq() to compare two direction vectors. r=dholbert
Status: ASSIGNED → RESOLVED
Closed: 1 years ago
Resolution: --- → FIXED
Target Milestone: --- → 119 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: