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

Prevent exponential notation (e.g. 1.0e-19) reaching CSS #77

Open
axelpale opened this issue Mar 2, 2016 · 0 comments
Open

Prevent exponential notation (e.g. 1.0e-19) reaching CSS #77

axelpale opened this issue Mar 2, 2016 · 0 comments

Comments

@axelpale
Copy link
Collaborator

axelpale commented Mar 2, 2016

Safari and Opera do not yet support scientific number notation in CSS. In JS, when very small numbers are converted to string, we usually end up with something like "-8.43858185037473e-19".

These unsupported number strings can reach this._transforms within Move.js, corrupting the resulting transformation.

For example, in my project, the following transformation string did not work in Safari 9.0.2:

"matrix(-8.43858185037473e-19, -0.003906249999999999, 0.003906249999999999, -8.43858185037473e-19, -1.3819999999999997 ,0.5000000000000001)"

There is some discussion how to prevent this.

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