Skip to content

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

@miketaylr

Description

@miketaylr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions