Reworks same-selector merging to run both ways.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 25 Feb 2015 20:35:31 +0000 (20:35 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Wed, 25 Feb 2015 22:04:54 +0000 (22:04 +0000)
commit2f8f100592908225c853997051f56bb87c35c20d
treeae58a033c9dffff3b306f8112359dd482654174c
parentd3f644c43aaff89d5be0f7241914c7c5843a5395
Reworks same-selector merging to run both ways.

This way it can optimize more use cases as content may not be
movable one way but it could be other way, e.g.:

```css
a{color:red}
p{display:block}
a{display:inline-block}
```

In this case the third selector can't be moved and merged with the
first one, but it can be done the other way around.
lib/selectors/optimizers/advanced.js
test/fixtures/big-min.css
test/integration-test.js
test/selectors/optimizer-test.js