css-variables-polyfill icon indicating copy to clipboard operation
css-variables-polyfill copied to clipboard

Does not support multiple CSS rules per line

Open neonflame4 opened this issue 7 years ago • 0 comments

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.

neonflame4 avatar Jul 31 '18 15:07 neonflame4