lib/kissy/5.0.0-alpha.3/build/feature-debug.js
function () {
            if (isTransform3dSupported !== undefined) {
                return isTransform3dSupported;
            }
            if (!documentElement || !getVendorInfo('transform')) {
                isTransform3dSupported = false;
            } else {
                // https://gist.github.com/lorenzopolidori/3794226
                // ie9 does not support 3d transform
                // http://msdn.microsoft.com/en-us/ie/ff468705
                try {
                    var el = doc.createElement('p');
                    var transformProperty = getVendorInfo('transform').propertyName;
                    documentElement.insertBefore(el, documentElement.firstChild);
                    el.style[transformProperty] = 'translate3d(1px,1px,1px)';
                    var computedStyle = win.getComputedStyle(el);
                    var has3d = computedStyle.getPropertyValue(transformProperty) || computedStyle[transformProperty];
                    documentElement.removeChild(el);
                    isTransform3dSupported = has3d !== undefined && has3d.length > 0 && has3d !== 'none';
                } catch (e) {
                    // https://github.com/kissyteam/kissy/issues/563
                    isTransform3dSupported = true;
                }
            }
            return isTransform3dSupported;
        }
function () {
            if (isTransform3dSupported !== undefined) {
                return isTransform3dSupported;
            }
            if (!documentElement || !getVendorInfo('transform')) {
                isTransform3dSupported = false;
            } else {
                // https://gist.github.com/lorenzopolidori/3794226
                // ie9 does not support 3d transform
                // http://msdn.microsoft.com/en-us/ie/ff468705
                try {
                    var el = doc.createElement('p');
                    var transformProperty = getVendorInfo('transform').propertyName;
                    documentElement.insertBefore(el, documentElement.firstChild);
                    el.style[transformProperty] = 'translate3d(1px,1px,1px)';
                    var computedStyle = win.getComputedStyle(el);
                    var has3d = computedStyle.getPropertyValue(transformProperty) || computedStyle[transformProperty];
                    documentElement.removeChild(el);
                    isTransform3dSupported = has3d !== undefined && has3d.length > 0 && has3d !== 'none';
                } catch (e) {
                    // https://github.com/kissyteam/kissy/issues/563
                    isTransform3dSupported = true;
                }
            }
            return isTransform3dSupported;
        }
function ( ) { if ( isTransform3dSupported !== undefined ) { return isTransform3dSupported ; } if ( ! documentElement || ! getVendorInfo ( 'transform' ) ) { isTransform3dSupported = false ; } else { // https://gist.github.com/lorenzopolidori/3794226 // ie9 does not support 3d transform // http://msdn.microsoft.com/en-us/ie/ff468705 try { var el = doc . createElement ( 'p' ) ; var transformProperty = getVendorInfo ( 'transform' ) . propertyName ; documentElement . insertBefore ( el , documentElement . firstChild ) ; el . style [ transformProperty ] = 'translate3d(1px,1px,1px)' ; var computedStyle = win . getComputedStyle ( el ) ; var has3d = computedStyle . getPropertyValue ( transformProperty ) || computedStyle [ transformProperty ] ; documentElement . removeChild ( el ) ; isTransform3dSupported = has3d !== undefined && has3d . length > 0 && has3d !== 'none' ; } catch ( e ) { // https://github.com/kissyteam/kissy/issues/563 isTransform3dSupported = true ; } } return isTransform3dSupported ; }
whether support css transform 3d
@returns {boolean}
whether support css transform 3d