diff -r 000000000000 -r 6474c204b198 content/canvas/test/test_toDataURL_alpha.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/content/canvas/test/test_toDataURL_alpha.html Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,205 @@ + + +
++For image types that do not support an alpha channel, the image must be +composited onto a solid black background using the source-over operator, +and the resulting image must be the one used to create the data: URL. +
+ +Mozilla + Bug 650720 +
+Output:
+ +Type: | +image/png | +image/jpeg | +image/bmp (24 bpp) |
+ image/bmp (32 bpp) |
+
---|---|---|---|---|
rgba(128, 255, 128, 0.5) | ++ | + | + | + |
rgba(255, 128, 128, 0.75) | ++ | + | + | + |
rgba(128, 128, 255, 0.25) | ++ | + | + | + |
rgba(255, 255, 255, 1.0) | ++ | + | + | + |
rgba(255, 255, 255, 0) | ++ | + | + | + |
rgba(0, 0, 0, 1.0) | ++ | + | + | + |
rgba(0, 0, 0, 0) | ++ | + | + | + |