vaadin / sass-compiler

A Java Sass compiler implementation
53 stars 25 forks source link

css function is compiled incorrectly #311

Closed appreciated closed 7 years ago

appreciated commented 7 years ago

Hi,

  .any-class {
    background: radial-gradient(circle, white, black);
  }

Will be compiled to.

  .any-class {
    background: radial, circle, white, black;
  }

Which then is invalid.
Is there any workaround to force the compiler to keep it and not trying to dissolve the function? I'm not experienced with sass, so sorry if there is an obvious solution.

appreciated commented 7 years ago

I see this is actually not the compilers fault but this function's. I can't see the reason why the function has the exact same name as the css function but well...

For others with the same issue I used this approach as a workaround at first:

.any-class {   
    background-image: unquote("radial-gradient(circle, white, black)");   
}

But the wanted "way" is actually to do this:

.any-class {   
    @include radial-gradient(circle, white, black);  
}