Skip to content

Compass does not compile @-moz-document url-prefix() correctly (sass does) #1921

@ghost

Description

It seems there is a bug in the way Compass handles @-moz-document url-prefix() that does not occur in sass.

Example scss:

#selectWrapper {
    select {
        width: 100%;
        @-moz-document url-prefix() {
            overflow: hidden;
            width: 165px;
        }
    }
}

Expected output (tested using http://sassmeister.com/):

#selectWrapper select {
    width: 100%;
}
@-moz-document url-prefix() {
    #selectWrapper select {
        overflow: hidden;
        width: 165px;
    }
}

Compass output:

#selectWrapper select {
    width: 100%;
    @-moz-document url-prefix() {
        overflow:hidden;
        width: 165 px
    }
}

I believe this was fixed in SASS 3.2 as per sass/libsass#633

Forgive any inaccuracies in my information, I'm a bit new to compass, but I couldn't find any mention of this in open issues.

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