Autoprefixer: Occasional infinite loop when url contains mismatched parens

Created on 28 Jan 2019  Â·  2Comments  Â·  Source: postcss/autoprefixer

Our team found a bug in the autoprefixer, where a background-image that contains both a url with mismatched parens and a radial-gradient will trigger an infinite loop. The bug isn't triggered if the radial-gradient isn't there. Also, this won't happen if the url's parens are balanced. ¯\_(ツ)_/¯

This css will tank both the current npm version, and the sandbox:

.test {
  background-image: url("https://test.com/lol(test.png"), radial-gradient(yellow, black, yellow);
}

Most helpful comment

Thanks for the report. Fixed in 5b05567.

All 2 comments

Thanks for the report. Fixed in 5b05567.

Released in 9.4.7

Was this page helpful?
0 / 5 - 0 ratings