src/sap.ui.core/src/sap/ui/thirdparty/jquery-mobile-custom.js
function validStyle( prop, value, check_vend ) {
	var div = document.createElement( 'div' ),
		uc = function( txt ) {
			return txt.charAt( 0 ).toUpperCase() + txt.substr( 1 );
		},
		vend_pref = function( vend ) {
			if( vend === "" ) {
				return "";
			} else {
				return  "-" + vend.charAt( 0 ).toLowerCase() + vend.substr( 1 ) + "-";
			}
		},
		check_style = function( vend ) {
			var vend_prop = vend_pref( vend ) + prop + ": " + value + ";",
				uc_vend = uc( vend ),
				propStyle = uc_vend + ( uc_vend === "" ? prop : uc( prop ) );

			div.setAttribute( "style", vend_prop );

			if ( !!div.style[ propStyle ] ) {
				ret = true;
			}
		},
		check_vends = check_vend ? check_vend : vendors,
		ret;

	for( var i = 0; i < check_vends.length; i++ ) {
		check_style( check_vends[i] );
	}
	return !!ret;
}
function validStyle( prop, value, check_vend ) {
	var div = document.createElement( 'div' ),
		uc = function( txt ) {
			return txt.charAt( 0 ).toUpperCase() + txt.substr( 1 );
		},
		vend_pref = function( vend ) {
			if( vend === "" ) {
				return "";
			} else {
				return  "-" + vend.charAt( 0 ).toLowerCase() + vend.substr( 1 ) + "-";
			}
		},
		check_style = function( vend ) {
			var vend_prop = vend_pref( vend ) + prop + ": " + value + ";",
				uc_vend = uc( vend ),
				propStyle = uc_vend + ( uc_vend === "" ? prop : uc( prop ) );

			div.setAttribute( "style", vend_prop );

			if ( !!div.style[ propStyle ] ) {
				ret = true;
			}
		},
		check_vends = check_vend ? check_vend : vendors,
		ret;

	for( var i = 0; i < check_vends.length; i++ ) {
		check_style( check_vends[i] );
	}
	return !!ret;
}
function validStyle ( prop , value , check_vend ) { var div = document . createElement ( 'div' ) , uc = function ( txt ) { return txt . charAt ( 0 ) . toUpperCase ( ) + txt . substr ( 1 ) ; } , vend_pref = function ( vend ) { if ( vend === "" ) { return "" ; } else { return "-" + vend . charAt ( 0 ) . toLowerCase ( ) + vend . substr ( 1 ) + "-" ; } } , check_style = function ( vend ) { var vend_prop = vend_pref ( vend ) + prop + ": " + value + ";" , uc_vend = uc ( vend ) , propStyle = uc_vend + ( uc_vend === "" ? prop : uc ( prop ) ) ; div . setAttribute ( "style" , vend_prop ) ; if ( ! ! div . style [ propStyle ] ) { ret = true ; } } , check_vends = check_vend ? check_vend : vendors , ret ; for ( var i = 0 ; i < check_vends . length ; i ++ ) { check_style ( check_vends [ i ] ) ; } return ! ! ret ; }
only used to rule out box shadow, as it's filled opaque on BB 5 and lower
only used to rule out box shadow as it s filled opaque on BB 5 and lower