Fixes #204 - media query merging.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 7 Feb 2015 19:45:37 +0000 (19:45 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Tue, 10 Feb 2015 20:43:27 +0000 (20:43 +0000)
commit6ed784a4aae91e5d7f48cf189c24095dfb8062cd
treeb3e25fd26af29920655525fc54717f1c3169d5ca
parent382e0ede5a71ea36e465e6a3c70852b978ca4557
Fixes #204 - media query merging.

It adds media query merging with the following set of rules:

* adjacent media with same conditions can be merged;
* non-adjacent media with same conditions can be merged only if
  any of moved properties is not redefined in-between, or a
  property is redefined with the exactly same value.
History.md
lib/selectors/optimizers/advanced.js
test/media-queries-test.js [new file with mode: 0644]