Fixes #645 - adds bottom to top `media` merging.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 16 Aug 2015 14:52:10 +0000 (15:52 +0100)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 16 Aug 2015 14:52:10 +0000 (15:52 +0100)
commit8cc801502f8d252a98d0ece2e2d6a34c428715c7
treed73f93694297c6a349218c21523e855c69d765f5
parentec905b26945f8d08e5d603c44faa5b334de67fe5
Fixes #645 - adds bottom to top `media` merging.

In addition to top to bottom media merging we now support the reverse
order one. It works similar way as same selector two-way merging - see
2f8f100592908225c853997051f56bb87c35c20d.

Consider this example where top to bottom is not possible but reverse is:

```css
@media (max-width:768px){.one{padding-right:0}}
.one{padding:10px}
@media (max-width:768px){.one{margin:0}}
```
History.md
lib/selectors/merge-media-queries.js
test/fixtures/bootstrap-min.css
test/selectors/merge-media-queries-test.js