HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/2004

File a bug

SVNBugCommentTime (UTC)
2004[Opera] How to handle transparent images for toDataURL(). Just allow the UA to premultiply the alpha and output that whie dropping the alpha channel, instead of worrying about the background color or whatnot. It's up to authors to make the background color non-transparent.2008-08-05 09:57
Index: source
===================================================================
--- source	(revision 2003)
+++ source	(revision 2004)
@@ -18002,6 +18002,11 @@
   enough information to reliably render an SVG image from the
   canvas.</p>
 
+  <p>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 <code title="">data:</code> URL.</p>
+
   <p>Only support for <code>image/png</code> is required. User agents
   may support other types. If the user agent does not support the
   requested type, it must return the image using the PNG format.</p>

|