diff options
author | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2015-02-23 11:52:41 -0800 |
---|---|---|
committer | Eevee (Alex Munroe) <eevee.git@veekun.com> | 2015-02-23 11:52:45 -0800 |
commit | 03ed722916bf8d376927bef7febb392fc7e218a4 (patch) | |
tree | 9d1ec6aca3a0700cf71bfefe6396fd4a1f44f0f0 | |
parent | 4919f9ffef88248dad1b2bcfba59984e589ac1e0 (diff) | |
download | pyscss-03ed722916bf8d376927bef7febb392fc7e218a4.tar.gz |
Don't truncate alpha in rgba(...) to two places. Fixes #329.
-rw-r--r-- | scss/types.py | 2 |
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) |