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

Transit fails on prefixless implementations (e.g., Opera Next 12.10, FF16) #82

Open
miketaylr opened this issue Oct 10, 2012 · 2 comments

Comments

@miketaylr
Copy link

As browsers support prefixless transforms, $(elem).css('transform') will return "none" rather than the empty string. That will cause "$(elem).css('transform') || new Transform();" to not get to the new Transform() bit, obviously.

You probably need to add a clause that compares against "none".

Opera 12.02:
 >>> $('.field').css('transform')
 ""
 >>> $('.field').css('-o-transform')
 "none"

Chrome:
 >>> $('.field').css('transform')
 ""
 >>> $('.field').css('-webkit-transform')
 "none"

ie9:
 >>> $('.field').css('transform')
 ""
 >>> $('.field').css('-ms-transform')
 "none"

Opera Next:
 >>> $('.field').css('transform')
 "none"
 >>> $('.field').css('-o-transform')
 "none"

Not sure when Firefox, Chrome, and IE10 hit the streets with their prefixless versions, but they're on their way.

@Grsmto
Copy link

Grsmto commented Oct 12, 2012

Yes, same thing for Firefox 16.

@miketaylr
Copy link
Author

Clearly I should have looked through the issue tracker a little more. A quick glance shows that: Issue #82, Issue #81, Issue #80, Issue #76, Issue #72, Issue #71, Issue #69, Issue #62, Issue #57 all report (and some provide fixes for) the same issue.

This project appears to be DOA. Bummer.

zhenglong added a commit to zhenglong/jquery.transit that referenced this issue Oct 14, 2012
okonet pushed a commit to okonet/jquery.transit that referenced this issue Oct 16, 2012
chrismcv pushed a commit to chrismcv/jquery.transit that referenced this issue Nov 19, 2012
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

2 participants