peteboere / css-crush

CSS preprocessor.
http://the-echoplex.net/csscrush
MIT License
537 stars 51 forks source link

calc() is not vendor prefixed #79

Closed croxton closed 9 years ago

croxton commented 9 years ago

Before processing:

.title {
    height: calc(80vh - 138px);
}

After processing with CSS Crush:

.title {
    height: calc(80vh - 138px);
    height: calc(80vh - 138px);
    height: calc(80vh - 138px);
}

The problem is in aliases.ini...

[functions]

    ; Calc.
    calc[] = -webkit-calc
    calc[] = -moz-calc

... which should be:

[functions.calc]

    ; Calc.
    calc[] = -webkit-calc
    calc[] = -moz-calc

This yields the expected output:

.title {
    height: -webkit-calc(80vh - 138px);
    height: -moz-calc(80vh - 138px);
    height: calc(80vh - 138px);
}
peteboere commented 9 years ago

Thanks for reporting @croxton, Have pushed a fix, please close this issue if it works for you now.