Fixes #829 - adds more strict selector merging rules.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 30 Dec 2016 21:23:29 +0000 (22:23 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Fri, 30 Dec 2016 21:44:27 +0000 (22:44 +0100)
commit2764f78ecb257ebc5d41889124c9b4aaa23f7536
tree4d4fa3d844486212094c883dee296de6df5fe912
parente9a1d985c1eb64e5c4139b42bf3edd9a34996856
Fixes #829 - adds more strict selector merging rules.

Why:

* Instead of blacklisting unmergeable selectors we're now
  whitelisting the valid ones and reject all other.
History.md
lib/optimizer/is-mergeable.js [new file with mode: 0644]
lib/optimizer/is-special.js [deleted file]
lib/optimizer/merge-adjacent.js
lib/optimizer/merge-non-adjacent-by-body.js
lib/optimizer/reduce-non-adjacent.js
lib/optimizer/restructure.js
lib/utils/compatibility.js
test/optimizer/is-mergeable-test.js [new file with mode: 0644]
test/optimizer/merge-adjacent-test.js