Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
This repository was archived by the owner on Oct 24, 2025. It is now read-only.

libsass chokes on Compass stylesheet's "prefix-usage(" call #1936

@ochafik

Description

@ochafik

Not sure if that's Compass not abiding by Scss syntax, or some bug in libsass.

Repro: given foo.scss:

@import 'compass/css3/flexbox';
.foo {
  @include display-flex(inline-flex);
}

The following command:

gem install sass compass
sassc -I `gem environment gemdir`/gems/compass-core-1.0.3/stylesheets foo.scss

Yields this error:

Error: may only compare numbers
        on line 323 of ../../.rvm/gems/jruby-1.7.19/gems/compass-core-1.0.3/stylesheets/compass/_support.scss
>>   $usage: prefix-usage($prefix, $capability, $capability-options);
   ----------^

See corresponding line in Compass' github source.

(this is blocking a large migration from Ruby Sass to SassC, as migrating to more libsass-friendly mixin libraries like Bourbon is a larger investment)

Output of sassc --version:

sassc: 3.3.0
libsass: 3.3.3
sass2scss: 1.0.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions