summaryrefslogtreecommitdiff
path: root/scss/extension/compass/gradients.py
diff options
context:
space:
mode:
Diffstat (limited to 'scss/extension/compass/gradients.py')
-rw-r--r--scss/extension/compass/gradients.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/extension/compass/gradients.py b/scss/extension/compass/gradients.py
index 031fba2..15e1200 100644
--- a/scss/extension/compass/gradients.py
+++ b/scss/extension/compass/gradients.py
@@ -59,7 +59,7 @@ def __color_stops(percentages, *args):
if prev_color:
stops.append(None)
stops = stops[:len(colors)]
- if stops[0] is None:
+ if stops[0] is None or stops[0] == Number(0):
stops[0] = Number(0, '%')
if stops[-1] is None:
stops[-1] = Number(100, '%')