I want to find out if a DOM Element has a style which is for example a color:Red. If this is defined on the inline style just like
<input type="text" style="color:Red">
I can get it easily with JavaScript
But how about if it's defined on a role - I mean as a css class and assign the class to the DOM Element
With javascript I know I can get the color with some method call computedStyle and give it the name of the property but it brings me the color in RGB numbers mode in Firefox and in IE it gets the color name
my question here is how to convert RGB into a simple color name?