In my CSS file I have this code:
.class { color: #fff; }
Now I am trying to read the CSS using:
document.stylesheets[0].cssRules.cssText
which returns:
.class { color: rgb(255,255,255); }
instead of the original CSS.
Is there any way to get original, hexadecimal value using document.stylesheets[0].cssRules.cssText
without conversion?