     param = Math.abs(450 - param) % 360
     param = @roundFloat(param, 3)
     "#{param}deg"
-
-  # Fix radial direction syntax
-  fixRadial: (params) ->
-    first = params[0].split(/\s+at\s+/)
-    params.splice(0, 1, first[1], first[0])
 
   oldDirection: (params) ->
     params if params.length == 0

      else
        "color-stop(#{color})"

  # Remove old WebKit gradient too
  old: (prefix) ->
    if prefix == '-webkit-'


    params

  # Convert to old webkit syntax
  oldWebkit: (value, args, params, after) ->
    return value if @name != 'linear-gradient'
    return value if params[0] and params[0].indexOf('deg') != -1
    return value if args.indexOf('-corner') != -1
    return value if args.indexOf('-side')   != -1

    params = @oldDirection(params)
    params = @colorStops(params)

    '-webkit-gradient(linear, ' + params.join(', ') + ')' + after

  # Change new direction to old
  convertDirection: (params) ->
    if params.length > 0
      if params[0][0..2] == 'to '
        params[0] = @fixDirection(params[0])
      else if params[0].indexOf('deg') != -1
        params[0] = @fixAngle(params[0])
      else if params[0].indexOf(' at ') != -1
        @fixRadial(params)

  # Replace `to top left` to `bottom right`
  fixDirection: (param) ->
    param = param.split(' ')
