Is there a way to override how javascript converts complex CSS color names to rgb values when applying them to DOM elements.
For example: document.getElementById("colorMe").style.background = "lightblue"
will set the div.style object with a background = rgb(...).
However, document.getElementById("colorMe").style.background = "blue"will set the div.style object with a background = blue.
I would like to bypass how javascript is converting that color into an RGB value for complex color names. Is this possible?
var x = document.getElementById("colorMe").style.backgroundI would like that to show up as "lightblue" not "rgb(....)"