# File lib/compass/sass_extensions/functions/gradient_support.rb, line 94 def grad_point(position) position = position.value position = if position[" "] if position =~ /(top|bottom|center) (left|right|center)/ "#{$2} #{$1}" else position end else case position when /top|bottom/ "left #{position}" when /left|right/ "#{position} top" else position end end Sass::Script::String.new(position. gsub(/top/, "0%"). gsub(/bottom/, "100%"). gsub(/left/,"0%"). gsub(/right/,"100%"). gsub(/center/, "50%")) end