Fixes #414 - source map position fallback.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Thu, 15 Jan 2015 21:39:54 +0000 (21:39 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Sun, 18 Jan 2015 12:39:25 +0000 (12:39 +0000)
commitf3c05d85a530312994f4cc68b3bce56ef66fa016
tree755784c756561ea8d829454e8260c4e94444a3d1
parentdc19fa435b33081e9e554c0728912dccfb79b617
Fixes #414 - source map position fallback.

Apparently there is a problem with building source maps from input
source maps when the latter one does not have correct (?) selector
positions.

It happens to postcss which in case of such a source:

```css
selector-1,
selector-2,
selector-3
{
  color:red;
}
```

generates selector source position for the first selector only.

To fix this issue clean-css tries to find out correct selector
position going to lines above which may have a selector position.
History.md
lib/selectors/source-map-stringifier.js
lib/utils/input-source-map-tracker.js
test/source-map-test.js