diff options
Diffstat (limited to 'scss/functions/compass/helpers.py')
-rw-r--r-- | scss/functions/compass/helpers.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scss/functions/compass/helpers.py b/scss/functions/compass/helpers.py index c1de01f..72df2e7 100644 --- a/scss/functions/compass/helpers.py +++ b/scss/functions/compass/helpers.py @@ -404,13 +404,13 @@ def _position(opposite, positions): continue elif isinstance(pos, Number): - if pos.unit == '%': + if pos.is_simple_unit('%'): if opposite: ret.append(Number(100 - pos.value, '%')) else: ret.append(pos) continue - elif pos.unit == 'deg': + elif pos.is_simple_unit('deg'): # TODO support other angle types? if opposite: ret.append(Number((pos.value + 180) % 360, 'deg')) |