src/aria/core/Browser.js
function (property) {
            // ----------------------------------------------------------- cache

            if (this._styleCache.hasOwnProperty(property)) {
                return this._styleCache[property];
            }

            // ------------------------------------------------------ processing

            // default if none of the actions below can find it
            var result = false;

            var prefixes = ['Moz', 'Webkit', 'Khtml', 'O', 'Ms'];

            var element = Aria.$window.document.documentElement;
            var style = element.style;

            // test standard property
            if (typeof style[property] === 'string') {
                result = true;
            } else {
                // capitalize
                var capitalizedProperty = property.charAt(0).toUpperCase() + property.slice(1);

                // test vendor specific properties
                for (var index = 0, length = prefixes.length; index < length; index++) {
                    var prefix = prefixes[index];

                    var prefixed = prefix + capitalizedProperty;
                    if (typeof style[prefixed] === 'string') {
                        result = true;
                        break;
                    }
                }
            }

            // ---------------------------------------------------------- result

            this._styleCache[property] = result;
            return result;
        }
function (property) {
            // ----------------------------------------------------------- cache

            if (this._styleCache.hasOwnProperty(property)) {
                return this._styleCache[property];
            }

            // ------------------------------------------------------ processing

            // default if none of the actions below can find it
            var result = false;

            var prefixes = ['Moz', 'Webkit', 'Khtml', 'O', 'Ms'];

            var element = Aria.$window.document.documentElement;
            var style = element.style;

            // test standard property
            if (typeof style[property] === 'string') {
                result = true;
            } else {
                // capitalize
                var capitalizedProperty = property.charAt(0).toUpperCase() + property.slice(1);

                // test vendor specific properties
                for (var index = 0, length = prefixes.length; index < length; index++) {
                    var prefix = prefixes[index];

                    var prefixed = prefix + capitalizedProperty;
                    if (typeof style[prefixed] === 'string') {
                        result = true;
                        break;
                    }
                }
            }

            // ---------------------------------------------------------- result

            this._styleCache[property] = result;
            return result;
        }
function ( property ) { // ----------------------------------------------------------- cache if ( this . _styleCache . hasOwnProperty ( property ) ) { return this . _styleCache [ property ] ; } // ------------------------------------------------------ processing // default if none of the actions below can find it var result = false ; var prefixes = [ 'Moz' , 'Webkit' , 'Khtml' , 'O' , 'Ms' ] ; var element = Aria . $window . document . documentElement ; var style = element . style ; // test standard property if ( typeof style [ property ] === 'string' ) { result = true ; } else { // capitalize var capitalizedProperty = property . charAt ( 0 ) . toUpperCase ( ) + property . slice ( 1 ) ; // test vendor specific properties for ( var index = 0 , length = prefixes . length ; index < length ; index ++ ) { var prefix = prefixes [ index ] ; var prefixed = prefix + capitalizedProperty ; if ( typeof style [ prefixed ] === 'string' ) { result = true ; break ; } } } // ---------------------------------------------------------- result this . _styleCache [ property ] = result ; return result ; }
Check whether the given CSS property is supported by the browser or not.

@param {String} property a CSS Property

@return {Boolean} <em>true</em> if given style is supported, <em>false</em> otherwise.

@private
Check whether the given CSS property is supported by the browser or not .