css-variables-polyfill
css-variables-polyfill copied to clipboard
Does not support multiple CSS rules per line
https://github.com/aaronbarker/css-variables-polyfill/blob/c27cb7e2a839e52833c399a0873b3c032a72146c/css-var-polyfill.js#L66
I suggest changing to something like this:
theCSS.match(/(--[\w-]+:.+);/g)
Otherwise, rules on the same line as the CSS variable are included in the match, and IE 11 throws exceptions. From there, custom variables will not parse.