I have a custom css variable declared in a separate css file in a selector.
.ui-grid-row:nth-child(odd) {
background-color: var(--altbg-color) !important;
}
This is not a root element. So not sure how css-vars-ponyfill will work in this case. I have tried that too but could not make it work. (I would be grateful if somebody can help me make it work.)
I am trying to set value to the variable through javascript (I am using AngularJS 1.3) using
document.documentElement.style.setProperty('--some-color', 'green')
which works fine with Chrome & Firefox but not in IE(11).
Does anybody have a solution?
Thanks in advance.