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.
This commit is contained in:
parent
6326835d5e
commit
9d4da89071
@ -107,9 +107,11 @@ module Compass::SassExtensions::Functions::GradientSupport
|
|||||||
else
|
else
|
||||||
case position
|
case position
|
||||||
when /top|bottom/
|
when /top|bottom/
|
||||||
"left #{position}"
|
"center #{position}"
|
||||||
when /left|right/
|
when /left|right/
|
||||||
"#{position} top"
|
"#{position} center"
|
||||||
|
when /center/
|
||||||
|
"center center"
|
||||||
else
|
else
|
||||||
position
|
position
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user