Why can't I do this? Or how can i do this?
/* this does not work and I want to achieve something like this */
el.style.setProperty("--member-clr", var('--server-clr'));
/* only below works */
el.style.setProperty("--member-clr", 'black')
CSS:
main {
--server-clr: linear-gradient(blah,blah)
}
I tried above and simply what I need to work does not work(it's illegal I get it so what is my best option?)