Fixes tracking nested selectors from source input maps.
authorJakub Pawlowicz <contact@jakubpawlowicz.com>
Sat, 6 Dec 2014 22:51:43 +0000 (22:51 +0000)
committerJakub Pawlowicz <contact@jakubpawlowicz.com>
Mon, 8 Dec 2014 09:42:55 +0000 (09:42 +0000)
commit7cb84c2c235e96d8c321eb10d123f45deddd6d87
treeb1358a44dc5f1e538945d89f07619f382b062950
parentcc96f31a63306e1b2b4daceaf5969aeaaf4ded2a
Fixes tracking nested selectors from source input maps.

* It was broken because input source maps point to the most specific selector.
* We were tracking by least specific before.
* It is a more or less a hack since at 'stringify' stage we already lost info about original declaration.
  However it works well so it's gonna be done in 3.1 (see #396).
13 files changed:
lib/selectors/source-map-stringifier.js
lib/utils/input-source-map-tracker.js
test/binary-test.js
test/data/source-maps/nested/once.css [new file with mode: 0644]
test/data/source-maps/nested/once.css.map [new file with mode: 0644]
test/data/source-maps/nested/once.less [new file with mode: 0644]
test/data/source-maps/nested/twice.css [new file with mode: 0644]
test/data/source-maps/nested/twice.css.map [new file with mode: 0644]
test/data/source-maps/nested/twice.less [new file with mode: 0644]
test/data/source-maps/styles.css
test/data/source-maps/styles.css.map
test/data/source-maps/styles.less [new file with mode: 0644]
test/source-map-test.js