summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEevee (Alex Munroe) <eevee.git@veekun.com>2015-02-23 11:52:41 -0800
committerEevee (Alex Munroe) <eevee.git@veekun.com>2015-02-23 11:52:45 -0800
commit03ed722916bf8d376927bef7febb392fc7e218a4 (patch)
tree9d1ec6aca3a0700cf71bfefe6396fd4a1f44f0f0
parent4919f9ffef88248dad1b2bcfba59984e589ac1e0 (diff)
downloadpyscss-03ed722916bf8d376927bef7febb392fc7e218a4.tar.gz
Don't truncate alpha in rgba(...) to two places. Fixes #329.
-rw-r--r--scss/types.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scss/types.py b/scss/types.py
index b844c92..e733377 100644
--- a/scss/types.py
+++ b/scss/types.py
@@ -1023,7 +1023,7 @@ class Color(Value):
sp = ''
else:
sp = ' '
- candidates.append("rgba(%d,%s%d,%s%d,%s%.2g)" % (r, sp, g, sp, b, sp, a))
+ candidates.append("rgba(%d,%s%d,%s%d,%s%.6g)" % (r, sp, g, sp, b, sp, a))
if compress:
return min(candidates, key=len)