Fixes #551 - edge case in restructuring.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 3 May 2015 11:09:50 +0000 (12:09 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 3 May 2015 14:13:58 +0000 (15:13 +0100)
commitdd606460bac4b7f0a91318ced2e0d462dac87df4
treebf9130623e3df9c41ea5e15ec08d5fcea12cdc43
parentf0c22a9de01f728197f50e059e4d1607cf79fe53
Fixes #551 - edge case in restructuring.

There was a bug in restructuring algorithm which allowed properties
to be moved too high up by using multi property moves.

This commit changes the behavior to drop a multi-property move on
a first occasion, i.e. when one of properties with different value
is encountered.
History.md
lib/selectors/optimizers/advanced.js
test/fixtures/960-min.css
test/fixtures/big-min.css
test/fixtures/bootstrap-min.css
test/fixtures/issue-437-min.css
test/selectors/optimizer-test.js