packages/mdl-drawer/util.js
/**
 * Determine whether the current browser supports CSS properties.
 * @param {Object} globalObj The global object, useful for testing (defaults to window).
 * @return {boolean} Whether the current browser supports CSS properties.
 */
Determine whether the current browser supports CSS properties.
@param {Object} globalObj The global object, useful for testing (defaults to window).
@return {boolean} Whether the current browser supports CSS properties.
Determine whether the current browser supports CSS properties . @param { Object } globalObj The global object useful for testing ( defaults to window ) . @return { boolean } Whether the current browser supports CSS properties .
function supportsCssCustomProperties(globalObj = window) {
  if ('CSS' in globalObj) {
    return globalObj.CSS.supports('(--color: red)');
  }
  return false;
}
function supportsCssCustomProperties ( globalObj = window ) { if ( 'CSS' in globalObj ) { return globalObj . CSS . supports ( '(--color: red)' ) ; } return false ; }
Determine whether the current browser supports CSS properties.
Determine whether the current browser supports CSS properties .