mattdesl / dom-css

fast dom CSS styling
MIT License
152 stars 13 forks source link

setting css variables #14

Open dy opened 8 years ago

dy commented 8 years ago

Hi @mattdesl!

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?