I'm new to jquery and i'm a bit surprised: when I write
$('#selected-color').css('background-color', 'rgba(0,0,0,1)');
My final style of #selected-color
ends up being rgb(0,0,0)
. This makes a big difference when I get the background-color back and try applying a regexp on it, expecting getting a rgba string.
So the question is Is Jquery applying automatic conversion on rgba values when alpha is set to 1 ? I had the same result with a=1.0 but I get a RGBA with a=0.99. I had no success indications on this in the jquery documentation