Closed jleclanche closed 11 years ago
This will be tricky, since grayscale($color)
is a Sass function, but grayscale($number)
is a CSS function.
Fixed! The implementation now returns a string grayscale(1)
if passed a number.
Thanks!
pyScss 1.2 has been released and has this fix.
This is still an issue for me: .foo { -webkit-filter: grayscale(90%); }
should be left untouched in CSS3 but errors with
../scss/functions/core.py", line 272, in greyscale h, s, l = color.hsl AttributeError: 'Number' object has no attribute 'hsl'
Confirming I just hit this issue as well.
.foo { -webkit-filter: grayscale(1); }
should be left untouched, but compiles grayscale(1) to #010101.