Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Ensures IE10 passes transition test; checks for unprefixed transition…
Browse files Browse the repository at this point in the history
…s to avoid qualifying Windows Phone.
  • Loading branch information
Wilto committed Dec 3, 2012
1 parent 83a250f commit 58e2a57
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/jquery.mobile.support.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function propExists( prop ) {

var fakeBody = $( "<body>" ).prependTo( "html" ),
fbCSS = fakeBody[ 0 ].style,
vendors = [ "Webkit", "Moz", "O", "ms", "" ],
vendors = [ "Webkit", "Moz", "O" ],
webos = "palmGetResource" in window, //only used to rule out scrollTop
opera = window.opera,
operamini = window.operamini && ({}).toString.call( window.operamini ) === "[object OperaMini]",
Expand Down Expand Up @@ -62,6 +62,7 @@ function validStyle( prop, value, check_vend ) {
// Thanks to Modernizr src for this test idea. `perspective` check is limited to Moz/unprefixed to prevent a false positive for 3D transforms on Android.
function transform3dTest() {
var prop = "transform-3d";
console.log( validStyle( 'perspective', '10px', ['moz', ''] ) );
return validStyle( 'perspective', '10px', ['moz', ''] ) || $.mobile.media( "(-" + vendors.join( "-" + prop + "),(-" ) + "-" + prop + "),(" + prop + ")" );
}

Expand Down Expand Up @@ -131,7 +132,7 @@ $.mobile.browser.ie = (function() {


$.extend( $.support, {
cssTransitions: "WebKitTransitionEvent" in window || validStyle( 'transition', 'height 100ms linear' ) && !opera,
cssTransitions: "WebKitTransitionEvent" in window || validStyle( 'transition', 'height 100ms linear', [ "Webkit", "Moz", "O", "" ] ) && !opera,
pushState: "pushState" in history && "replaceState" in history,
mediaquery: $.mobile.media( "only all" ),
cssPseudoElement: !!propExists( "content" ),
Expand Down

0 comments on commit 58e2a57

Please sign in to comment.