Generate rgba() rather than rgb().

This commit is contained in:
Natalie Weizenbaum 2016-10-16 12:15:49 -07:00
parent 90d9ed03cc
commit ddf6452f20

View File

@ -267,7 +267,7 @@ class _SerializeCssVisitor
// TODO: support precision in alpha, make sure we don't write exponential
// notation.
_buffer.write(
"rgb(${value.red}, ${value.green}, ${value.blue}, ${value.alpha})");
"rgba(${value.red}, ${value.green}, ${value.blue}, ${value.alpha})");
}
}