I heve some html elements having a css background-color in their style.background property.
The color are dinamically generated, so they coould be in all possible formats, like red, #rgb, or rgb(...);
I would like to know if there is a method to set the alpha value of an element background color in the style property, without changing the object.style.background property value (since i don’t know in which format is expressed the background-color).
So without using i.e. the rgba(...) value.
If possible, the element background color should not propagate to its childs element (as the inner text, etc..). Is it possible?
You’ll probably have to parse the colors, but you can try this as a starting point.