src/components/colors/colors.spec.js
function checkColorMode() {
    if (angular.isUndefined(usesRGBA)) {
      var testerElement = compile('<div md-colors="{background: \'red\'}" >');
      usesRGBA = testerElement[0].style.background.indexOf('rgba') === 0;
    }
  }
function checkColorMode() {
    if (angular.isUndefined(usesRGBA)) {
      var testerElement = compile('<div md-colors="{background: \'red\'}" >');
      usesRGBA = testerElement[0].style.background.indexOf('rgba') === 0;
    }
  }
function checkColorMode ( ) { if ( angular . isUndefined ( usesRGBA ) ) { var testerElement = compile ( '<div md-colors="{background: \'red\'}" >' ) ; usesRGBA = testerElement [ 0 ] . style . background . indexOf ( 'rgba' ) === 0 ; } }
Checks whether the current browser uses RGB or RGBA colors. This is necessary, because IE and Edge automatically convert RGB colors to RGBA.
Checks whether the current browser uses RGB or RGBA colors . This is necessary because IE and Edge automatically convert RGB colors to RGBA .