Closed wesselbaum closed 5 years ago
Thank you for your reply. I am totaly aware that there are options to prevent this from happening. I also could put the concationation into a variable and so on. The main problem on my side is, that I work in a team of 15+ poeple and try to convince them to use csscomb but since this bug exists noone uses it, since this could happpen in the futur on places where we are not aware of.
That makes sense, you want to be sure that csscomb doesn't accidentally break your code!
I couldn't find the cause of this. No combination of options fixes this.
I can add some extra info though, it might help others figure this out:
url()
+
(space left/right) affects the output+
and the variable is used first, the issue does not occurThese break:
background: url('string'+'string'); // url('string')'string';;
background: url($var +'string'); // url($var )'string';;
background: url($var + 'string'); // url($var ) 'string';;
background: url($var+ 'string'); // url($var+ );;
background: url($var + $var); // url($var ) $var;;
background: url('string'+$var); // url('string')$var;;
This doesn't break:
background: url($var+'string'); // no space around + and variable must come first
As this is specific to url()
, this may be an issue with the parser, gonzales-pe rather than csscomb itself.
Sorry I couldn't be more help @wesselbaum!
This is fixed in the latest csscomb release :tada:
My following SCSS rule
results in
which is not what it supossed to result.
Am I doing something wrong?