Closed Bug 1585118 Opened 5 years ago Closed 5 years ago

Some of the rotate interpolation tests fail

Categories

(Core :: CSS Transitions and Animations, enhancement)

enhancement
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1506746

People

(Reporter: xidachen, Assigned: boris)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36

Steps to reproduce:

Run this test with firefox nightly:
https://github.com/web-platform-tests/wpt/blob/master/css/css-transforms/animation/rotate-interpolation.html

Actual results:

Got error message:
assert_true: 'from' value should be supported expected true got false

Expected results:

the value should be supported

Hi,

Thanks for the test case! One question, how do you verify that you got that error? Could you send me a pic?

Thanks in advance, Flor.

Flags: needinfo?(xidachen)
Flags: needinfo?(xidachen)

Create a local server under wpt, and open localhost:8000/css/css-transforms/animation/rotate-interpolation.html

Hi,

Thanks for the info, it was very helpful. I've chosen a component for this bug so that the developers may look at it. We'll await their answer. If you consider that there's another component that's more proper for this case you may change it.

Regards, Flor.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core

Is the property enabled in your build? I get very different results if I go to about:config and set layout.css.individual-transform.enabled to true.

Xida: FYI, all WPTs are in w3c-test.org, so you could've pointed to http://w3c-test.org/css/css-transforms/animation/rotate-interpolation.html directly.

It seems we pass most of the tests there but not all. Some of them are serialization issues, like:

assert_equals: expected "45deg " but got "z 45deg "

Others seem legit like:

assert_equals: expected "- 1 1 0 60deg " but got "- 0.71 0.71 0 60deg "

Boris, you've been looking at individual transform lately, do you have cycles to look into this?

Blocks: 1424900
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(boris.chiou)
Summary: Rotate interpolation is not supported → Some of the rotate interpolation tests fail
Component: CSS Parsing and Computation → CSS Transitions and Animations

OK. I'm looking at this.

Assignee: nobody → boris.chiou
Flags: needinfo?(boris.chiou)

OK. All failures are because of https://github.com/w3c/csswg-drafts/issues/3290.
e.g.

from [45deg] to [-1 1 0 60deg] 

We promote 45deg to z 45deg for interpolation (i.e. to make sure both from and to values are 3d transform), so the serialization at 0% is z 45deg. Besides, we do normalization on the axis to make it as an unit vector, so the serialization at 100% is -0.71 0.71 0 60deg.

This is duplicated by bug 1506746.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: