Closed joyously closed 5 years ago
This line is supposed to be checking properties for prefixes, but it will also match CSS variables. https://github.com/LeaVerou/prefixfree/blob/0d3d2a0e6656316f385cd1d57559a19bcbbf2c57/prefixfree.js#L281
Would a good solution be if (property.charAt(0) === '-') && (property.charAt(1) !== '-') {
if (property.charAt(0) === '-') && (property.charAt(1) !== '-') {
?
@joyously Yup, that should work.
Or, even better, a regex:
if (/^-[^-]/.test(property))
This line is supposed to be checking properties for prefixes, but it will also match CSS variables. https://github.com/LeaVerou/prefixfree/blob/0d3d2a0e6656316f385cd1d57559a19bcbbf2c57/prefixfree.js#L281