Consider the following scenario with a stylesheet:
.d1
width: 10px
.d2
width: 20px
When viewed using the nested output style, it leads to this css code:
.d1 {
width: 10px; }
.d1 .d2 {
width: 20px; }
The source map (v3) indicates the mappings as follows:
AAAA,AAAA,GAAG,CAAC;EACA,KAAK,EAAE,IAAK,GAES;EAHzB,AAEI,GAFD,CAEC,GAAG,CAAC;IACA,KAAK,EAAE,IAAK,GAAG
After decoding it using this service, the result is:
([0,0](#0)=⇒[0,0]) | ([0,0](#0)=⇒[0,0]) | ([0,3](#0)=⇒[0,3]) | ([0,4](#0)=⇒[0,4])
([1,4](#0)=⇒[1,2]) | ([1,9](#0)=⇒[1,7]) | ([1,11](#0)=⇒[1,9]) | ([1,16](#0)=⇒[1,13]) | ([3,25](#0)=⇒[1,16])
([0,0](#0)=⇒[2,2]) | ([2,4](#0)=⇒[2,2]) | ([0,3](#0)=⇒[2,5]) | ([2,4](#0)=⇒[2,6]) | ([2,7](#0)=⇒[2,9]) | ([2,8](#0)=⇒[2,10])
([3,8](#0)=⇒[3,4]) | ([3,13](#0)=⇒[3,9]) | ([3,15](#0)=⇒[3,11]) | ([3,20](#0)=⇒[3,15]) | ([3,23](#0)=⇒[3,18])
The source was generated in a similar way using node-sass (libsass).
It seems like pairs of points from the original and resulting files are being represented in the source map. For example, the last pair on the second line: ([3,25](#0)=⇒[1,16]). Is row 3 column 25 an unexpected outcome?
Is there a mistake in my approach? Or could the source map be incorrect? Any suggestions on how to generate an accurate source map would be appreciated.