From 257c57cb53499d7c7dbbe9f40dd153f2283d173b Mon Sep 17 00:00:00 2001 From: Irina Dumitrascu Date: Fri, 5 Nov 2010 18:46:11 -0400 Subject: [PATCH] Fixed the position evaluation for radial gradients top should mean top center (not top left) left should mean center left (not top left) center should mean center center (it was wrongly evaluated to "50%" Safari would not show the gradient at all, SVG would place it in center left) This does not affect linear gradients. --- lib/compass/sass_extensions/functions/gradient_support.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/compass/sass_extensions/functions/gradient_support.rb b/lib/compass/sass_extensions/functions/gradient_support.rb index 09df7cf5..445faeff 100644 --- a/lib/compass/sass_extensions/functions/gradient_support.rb +++ b/lib/compass/sass_extensions/functions/gradient_support.rb @@ -107,9 +107,11 @@ module Compass::SassExtensions::Functions::GradientSupport else case position when /top|bottom/ - "left #{position}" + "center #{position}" when /left|right/ - "#{position} top" + "#{position} center" + when /center/ + "center center" else position end