Adds smarter reordering rules.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 22 Feb 2015 14:33:29 +0000 (14:33 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 25 Feb 2015 22:04:54 +0000 (22:04 +0000)
commitfedc34f7c84320b223704e0419757e83823926aa
treeefce8fedadced7ce4dcb620367198c59acfffd68
parentd40082464825d184743517464c5f9183d3c7d1a6
Adds smarter reordering rules.

We can reorder two properties if one them is shorthand and the other
is granular but they have the same value.

Note: it may be improved even further with #429 in place. At that time
we may compare exact values, e.g. `margin:0 1px` is currently not
swappable with `margin-top:0` but it should.
lib/selectors/optimizers/advanced.js
test/fixtures/big-min.css
test/selectors/optimizer-test.js