Re: [whatwg] fullscreen event?

2006-05-08 Thread Arve Bersvendsen

On Sat, 06 May 2006 01:47:15 +0200, Dean Edwards [EMAIL PROTECTED] wrote:


Martijn wrote:

I was thinking, maybe a fullscreen (and a normalscreen event or
something like that) event would be useful?
Also, a fullScreen property (which returns true or false) on the
window would in that case be handy.


What do you have in mind? I know that the browser's chrome disappears  
but otherwise how is this different from a normal resize event?


Opera applies stylesheets with 'media=projection' when it goes in to  
fullscreen (projection) mode, so in one sense the resulting document is  
different. On the other hand, detecting this on resize is fairly trivially  
acheived by checking the style of some reference element.


--
Arve Bersvendsen, Opera Software ASA


Re: [whatwg] proposed canvas 2d API additions

2006-05-08 Thread Anne van Kesteren

Quoting Ian Hickson [EMAIL PROTECTED]:

How about:

   interface ImageData {
 readonly attribute long int width;
 readonly attribute long int height;
 readonly attribute Array data;
   }


I saw you added this API and noted that you haven't addressed security  
yet. Basically the same security considerations as for toDataURL()  
should apply. I suggest adding that somewhere.


One other problem I had with it was that the colors are restricted to  
8 bit. That may potentially lead to data loss but I guess it's not a  
major concern yet.



--
Anne van Kesteren
http://annevankesteren.nl/