vaadin / sass-compiler

A Java Sass compiler implementation
53 stars 25 forks source link

Garbage output when using interpolation with unquoted string #302

Open vaadin-bot opened 8 years ago

vaadin-bot commented 8 years ago

Originally by @Artur-


$pathFix: "../../../valoexamples";
$fontfile: "fonts/Vaadin-Icons";
$full: #{$pathFix}/#{$fontfile};

.foo {
  full: $full;
}
@include v-font(VaadinIcons, $full);

Should, when used with Valo, output

.foo {
    full: ../../../valoexamples/fonts/Vaadin-Icons;
}

@font-face {
    font-family: VaadinIcons;
    font-weight: normal;
    font-style: normal;
    src: url(../valo/util/bourbon/css3/../../../valoexamples/fonts/Vaadin-Icons.eot);
...

but instead it outputs

.foo {
    full: ../../../valoexamples/fonts/Vaadin-Icons;
}

@font-face {
    font-family: VaadinIcons;
    font-weight: normal;
    font-style: normal;
    src: url(../valo/util/bourbon/css3/�.eot);
...

No warnings or errors are output. Quoting $full makes it works as expected.


Imported from https://dev.vaadin.com/ issue #18910