W3C home > Mailing lists > Public > public-html-commits@w3.org > August 2008

html5/spec Overview.html,1.1192,1.1193

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Tue, 05 Aug 2008 09:57:13 +0000
To: public-html-commits@w3.org
Message-Id: <E1KQJI1-0002Dl-Tr@lionel-hutz.w3.org>

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv8507

Modified Files:
Log Message:
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. (whatwg r2004)

Index: Overview.html
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.1192
retrieving revision 1.1193
diff -u -d -r1.1192 -r1.1193
--- Overview.html	5 Aug 2008 09:29:05 -0000	1.1192
+++ Overview.html	5 Aug 2008 09:57:10 -0000	1.1193
@@ -20827,6 +20827,11 @@
    or even maybe <code>image/svg+xml</code> if the implementation actually
    keeps enough information to reliably render an SVG image from the canvas.
+  <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>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.
Received on Tuesday, 5 August 2008 09:57:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:09:18 UTC