Merge branch 'broadway-alpha-colors' into 'master'

broadway: Correct handling of opaque colors

See merge request GNOME/gtk!2484
This commit is contained in:
Emmanuele Bassi 2020-08-26 11:20:03 +00:00
commit eef1818cee

View File

@ -396,7 +396,7 @@ TransformNodes.prototype.decode_color = function() {
var g = (rgba >> 8) & 0xff;
var b = (rgba >> 0) & 0xff;
var c;
if (a == 0)
if (a == 255)
c = "rgb(" + r + "," + g + "," + b + ")";
else
c = "rgba(" + r + "," + g + "," + b + "," + (a / 255.0) + ")";