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

[css-transforms-2] Interpolation between none and a 3d rotate for rotate property #3306

Closed
BorisChiou opened this issue Nov 8, 2018 · 1 comment

Comments

@BorisChiou
Copy link
Contributor

About interpolation between none and a 3d rotate, the spec [1] only says:

When translate, rotate or scale are animating or transitioning, and the from value or to value (but not both) is none, the value none is replaced by the equivalent identity value (0px for translate, 0deg for rotate, 1 for scale).

This means we should replace the none as rotate: 0deg. This is fine for 2d rotation. However, the spec doesn't mention if the other value is a 3d rotation. e.g. from none to rotate: 7 8 9 100deg. The current spec might mislead people to replace none with rotate: 0 0 1 0deg (which is the most similar one to rotate: 0deg). However, for 3d rotation interpolation, it may make more sense to replacenone to rotate 7 8 9 0deg. (Maybe I am wrong.) In other words, I think it's better to note this: we should replace none with an identity value with a suitable rotate axis?

[1] https://drafts.csswg.org/css-transforms-2/#valdef-translate-none

@BorisChiou
Copy link
Contributor Author

BorisChiou commented Nov 8, 2018

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

No branches or pull requests

1 participant