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|
stop = pos.stop
stop = stop.div(max).times(Sass::Script::Number.new(100,["%"])) if stop.numerator_units == max.numerator_units
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