Permalink
Browse files

Ensures IE10 passes transition test; checks for unprefixed transition…

…s to avoid qualifying Windows Phone.
  • Loading branch information...
1 parent 83a250f commit 58e2a57a53b4de5e6f4a74d77664c518c468eaf5 @Wilto Wilto committed Dec 3, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 js/jquery.mobile.support.js
@@ -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]",
@@ -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 + ")" );
}
@@ -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" ),

0 comments on commit 58e2a57

Please sign in to comment.