chriseppstein/compass — pull request #1040 by cscott (2012-10-05 04:52:08+00:00)
Title: Bug fix for CSS gradient parsing.

The string "currentColor" is a valid color for gradients. Before this patch, using it in a gradient definition gave the following error and backtrace:

Syntax error: Expected a color. Got: currentColor
on line 487 of /home/cananian/Projects/OLPC/Narrative/nell-colors/sass/b
rushdemo.scss

Backtrace:
/home/cananian/Projects/OLPC/Narrative/nell-colors/sass/brushdemo.scss:487
/home/cananian/Projects/OLPC/Narrative/compass/lib/compass/sass_extensions/funct
ions/gradient_support.rb:14:in `initialize'
/home/cananian/Projects/OLPC/Narrative/compass/lib/compass/sass_extensions/funct
ions/gradient_support.rb:252:in `new'
/home/cananian/Projects/OLPC/Narrative/compass/lib/compass/sass_extensions/funct
ions/gradient_support.rb:252:in `block in color_stops'
/home/cananian/Projects/OLPC/Narrative/compass/lib/compass/sass_extensions/funct
ions/gradient_support.rb:246:in `map'
/home/cananian/Projects/OLPC/Narrative/compass/lib/compass/sass_extensions/funct
ions/gradient_support.rb:246:in `color_stops'
/home/cananian/Projects/OLPC/Narrative/compass/lib/compass/sass_extensions/funct
ions/gradient_support.rb:303:in `linear_gradient'
/usr/lib/ruby/vendor_ruby/sass/script/funcall.rb:88:in `_perform'
/usr/lib/ruby/vendor_ruby/sass/script/node.rb:40:in `perform'
/usr/lib/ruby/vendor_ruby/sass/tree/visitors/perform.rb:216:in `visit_prop'
/usr/lib/ruby/vendor_ruby/sass/tree/visitors/base.rb:37:in `visit'