summaryrefslogtreecommitdiff
path: root/scss/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'scss/__init__.py')
-rw-r--r--scss/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/scss/__init__.py b/scss/__init__.py
index a9cac83..be613f2 100644
--- a/scss/__init__.py
+++ b/scss/__init__.py
@@ -4460,6 +4460,10 @@ class NumberValue(Value):
first.value /= 100.0
elif second_unit == '%' and first_unit != '%':
second = NumberValue(first) * second.value
+ elif op == operator.__div__:
+ if first_unit and first_unit == second_unit:
+ first.units = {}
+ second.units = {}
val = op(first.value, second.value)