Node-sass: grayscale()

Created on 21 May 2014  路  6Comments  路  Source: sass/node-sass

I have an issue compiling with [email protected].

$ node_modules/.bin/node-sass app/sass/app.scss -o app/style/app.css

Yields: error: argument$colorofgrayscale($color)must be a color. Where the offending (and obviously valid) line is:

.myClass {
    -webkit-filter: grayscale(1);
}

app.scss compiles fine with Ruby Sass. If I comment out the above line, Node Sass can compile the rest of the file(s).

External - LibSass

Most helpful comment

You can avoid this problem using the following syntax:

a{
  -webkit-filter: unquote("grayscale(100%)"); 
}

All 6 comments

https://github.com/andrew/node-sass#reporting-sass-compilation-and-syntax-issues

Sorry should've seen that, 11" screen had it out of sight :P

Don't sweat it :smile:. You've reported the issue upstream with libsass, which is where it should be, so everything is right with the world.

You can avoid this problem using the following syntax:

a{
  -webkit-filter: unquote("grayscale(100%)"); 
}

@sandropaganotti Thanks, class and effective (y)

@sandropaganotti Thanks, class and effective (y)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Rudloff picture Rudloff  路  3Comments

cjo2118 picture cjo2118  路  3Comments

mkbctrl picture mkbctrl  路  4Comments

ruchern-chong picture ruchern-chong  路  3Comments

alexandrubau picture alexandrubau  路  3Comments