mirror of
https://github.com/hanzoai/autoprefixer.git
synced 2026-09-24 16:55:58 +00:00
The `already()` check compared `before.selector` to the generated
prefixed selector with strict equality. Generated prefixed selectors
always join the comma list with `', '`, so once an existing prefixed
rule had its selector list reformatted (e.g. one selector per line by a
formatter), the comparison failed and Autoprefixer inserted a duplicate
prefixed rule on every run.
Normalize the compared selector with `list.comma(...).join(', ')` so
whitespace differences in the selector list no longer defeat the
duplication check.
Closes #1497