Setting element style as el.style[property] = value is not valid for css variables, so css(el, {'--active': 'red'}); does not work for now.
We have to use el.style.setProperty(property, value); in order to enable custom css properties.
I guess that would be nice of dom-css to care about that.
Is it worth PR or that is out of package scope?
Hi @mattdesl!
Setting element style as
el.style[property] = value
is not valid for css variables, socss(el, {'--active': 'red'});
does not work for now. We have to useel.style.setProperty(property, value);
in order to enable custom css properties. I guess that would be nice of dom-css to care about that. Is it worth PR or that is out of package scope?