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