# File lib/compass/sass_extensions/functions/gradient_support.rb, line 40
    def grad_color_stops(color_list)
      assert_list(color_list)
      normalize_stops!(color_list)
      max = color_list.values.last.stop
      last_value = nil
      color_stops = color_list.values.map do |pos|
        # have to convert absolute units to percentages for use in color stop functions.
        stop = pos.stop
        stop = stop.div(max).times(Sass::Script::Number.new(100,["%"])) if stop.numerator_units == max.numerator_units
        # Make sure the color stops are specified in the right order.
        if last_value && last_value.value > stop.value
          raise Sass::SyntaxError.new("Color stops must be specified in increasing order")
        end
        last_value = stop
        "color-stop(#{stop.inspect}, #{pos.color.inspect})"
      end
      
      Sass::Script::String.new(color_stops.join(", "))
    end