diff options
Diffstat (limited to 'scss/functions/compass/helpers.py')
-rw-r--r-- | scss/functions/compass/helpers.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scss/functions/compass/helpers.py b/scss/functions/compass/helpers.py index 92f1ed3..0ba2f18 100644 --- a/scss/functions/compass/helpers.py +++ b/scss/functions/compass/helpers.py @@ -398,6 +398,9 @@ def _position(opposite, positions): else: ret.append(pos) continue + elif pos_value == 'to': + # Gradient syntax keyword; leave alone + ret.append(pos) elif isinstance(pos, Number): if pos.unit == '%': @@ -414,7 +417,8 @@ def _position(opposite, positions): ret.append(pos) continue - log.warn("Can't find opposite for position %r" % (pos,)) + if opposite: + log.warn("Can't find opposite for position %r" % (pos,)) ret.append(pos) return List(ret, use_comma=False).maybe() |