/* Possible additions: scollTop CSS Matrix */ $.extend( $.support, { orientation: !!window.orientation, // to use bbq-style navigation with external pages // we will need to first test for ajax support (and fall back to normal urls) ajax: !!$.ajaxSettings.xhr(), touch: typeof Touch === "object", WebKitAnimationEvent: typeof WebKitTransitionEvent === "object" }); (function() { var fakeBody = $( "" ).prependTo( "html" ), displayDiv = $( "
" ) .prependTo( fakeBody )[ 0 ], positionDiv = $( "
" + "
").prependTo( fakeBody )[ 0 ], floatClearHtml = "
", floatClearWrap = $( "
" ) .append( floatClearHtml + floatClearHtml ) .prependTo( fakeBody ), floatClearDivs = floatClearWrap.children(), floatClearDiv1Top = floatClearDivs[ 0 ].offsetTop, floatClearDiv2 = floatClearDivs[ 1 ], supportFloatClear = false; if ( floatClearDiv1Top === floatClearDiv2.offsetTop ) { floatClearDiv2.style.clear = "left"; if ( floatClearDiv1Top !== floatClearDiv2.offsetTop ) { supportFloatClear = true; } } $.extend( $.support, { display: displayDiv.offsetHeight === 0, position: positionDiv.offsetLeft === 10, overflow: positionDiv.offsetHeight === 0, floatclear: supportFloatClear }); fakeBody.remove(); })();