    # File lib/compass/sass_extensions/functions/gradient_support.rb, line 333
        def linear_end_position(position_or_angle, color_list)
          start_point = grad_point(position_or_angle || Sass::Script::String.new("top"))
          end_point = grad_point(opposite_position(position_or_angle || Sass::Script::String.new("top")))
          end_target = color_list.value.last.stop

          if color_list.value.last.stop && color_list.value.last.stop.numerator_units == ["px"]
            new_end = color_list.value.last.stop.value
            if start_point.value.first == end_point.value.first && start_point.value.last.value == 0
              # this means top-to-bottom
              end_point.value[1] = Sass::Script::Number.new(end_target.value)
            elsif start_point.value.last == end_point.value.last && start_point.value.first.value == 0
              # this implies left-to-right
              end_point.value[0] = Sass::Script::Number.new(end_target.value)
            end
          end
          end_point
        end