I assign an element's background color using a hex code.
e.style.backgroundColor = '#7bf47e'
When I come back later to ASK for that color, so I can see if it's changed or not, Chrome gives me an RGB() triplet: rgb(123,123,123)
.
Since '#7bf47e'
does not equal 'rgb(123,123,123)'
, the color has always changed as far as Chrome is concerned.
IE10 handles this fine, giving me '#7bf47e'
when I ask for the background color.
EDIT: Sorry, here's a clarification. The actual rgb values below are purely for example. I didn't note what the actual rgb() values were. I'm just saying that I give it a hex, and it gives me back an rbg(). I'd like to get it back in the same format I set it.