Note: background_color: rgba(0,0,0,0.0); will be more accurate, but the same. As indicated, background_color: transparent; will be supported in older browsers.
Using background_color is not a problem, since it is used universally in both indicators. The question is the purpose of transparent -vs- rgba .
transparent - obviously, sets the background to a transparent background with no color option; another choice is the specified color definition in hexadecimal or other accepted color values, such as blue rgb(x,x,x) rgba(x,x,x,x) #xxxxxx hsl(x,x,x) hsla(x,x,x,x) , etc.
rgba(x,x,x,x) , however, is and is not a horse of a different color, as it is more extensive and must be broken in order to explain. First, the difference is that you set the color and set the transparency,
The “rgb” setting of the setup indicates red green blue , representing the first 3 zero settings (0,0,255,X) , and each 0 takes values from 0 to 255. Playback with these three values in color setting combinations to create a single color.
The " a " in (rgb a ) and its zero setting (x, x, x, 0 ) is the ALPHA channel that sets the transparency / transparency of the first three combined colors ( x, x, x ,?). It should be noted that this last zero value (x, x, x, 0 ) takes a range of values from 0.0 to 1.0 . A 0.0 completely transparent, and 1.0 is solid. Thus, using the rgba(x,x,x,0.5) parameter will result in the specified color with half transparency.