decl. node raws.between boundaries #598

Open
MohammadYounes opened this Issue Oct 11, 2015 · 1 comment

Projects

None yet

2 participants

@MohammadYounes
Contributor

If a declaration value starts with a comment, that comment will be considered as part of node.raws.between rather than being part of node.raws.value

For example:

   body{
        font-family: /*before*/ Tahoma /*after*/;
    }

Produces:

{ raws:
   { before: '\r\n        ',
     between: ': /*before*/ ',
     value: { value: 'Tahoma ', raw: 'Tahoma /*after*/' }
   }
}

While I expected:

{ raws:
   { before: '\r\n        ',
     between: ': ',
     value: { value: 'Tahoma ', raw: '/*before*/ Tahoma /*after*/' }
   }
}

Shouldn't the comment be part of the value ?

Thanks.

@ai
Member
ai commented Oct 11, 2015

You are right. Let’s fix it in next major release.

@ai ai added bug 6.0 labels Oct 11, 2015
@ai ai modified the milestone: 6.0 Feb 22, 2016
@ai ai removed the 6.0 label Feb 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment