Re: [whatwg] Proposal: createImageBitmap should return a "Promise" instead of using a callback

2013-07-18 Thread Silvia Pfeiffer
Promises are new to browsers and people who have used them before have raised issues about the extra resources they require. It may be a non-issue in the browser, but it's still something we should be wary of. Would it be possible for the first browser that implements this to have both implementat

Re: [whatwg] Sortable Tables

2013-07-18 Thread Ian Hickson
On Fri, 28 Dec 2012, Stuart Langridge wrote: > > > > > > Sorttable also allows authors to specify "alternate content" for a > > > cell. eleven > > > > eleven > > > > > The sorttable.js solution is to specify a "custom key", which > > > sorttable pretends was the cell content for the purposes of

Re: [whatwg] Script preloading

2013-07-18 Thread Kyle Simpson
About a week ago, I presented a set of code comparing the

Re: [whatwg] Proposal: Media element - add attributes for discovery of playback rate support

2013-07-18 Thread Brendan Long
On 07/18/2013 03:17 PM, Eric Carlson wrote: > Even a DVR, however, won't always let you change the playback speed. > For example it isn't possible to play at greater than 1x past the > current time when watching a live stream. If I am watching a live > stream and I try to play past the end of the b

Re: [whatwg] Canvas 2D memory management

2013-07-18 Thread Justin Novosad
On Thu, Jul 18, 2013 at 5:18 PM, Rik Cabanier wrote: > > > On Thu, Jul 18, 2013 at 2:03 PM, Justin Novosad wrote: > >> On Thu, Jul 18, 2013 at 12:50 PM, Ian Hickson wrote: >> >> > On Wed, 9 Jan 2013, Ashley Gullen wrote: >> > > >> > > Some developers are starting to design large scale games usi

Re: [whatwg] Canvas 2D memory management

2013-07-18 Thread Boris Zbarsky
On 7/18/13 5:18 PM, Rik Cabanier wrote: Does the JS VM know about the image bits? For what it's worth, at least in Firefox it would; we already tell the JS VM about all sort of other large C++-side allocations owned by JS objects. -Boris

Re: [whatwg] Canvas 2D memory management

2013-07-18 Thread Rik Cabanier
On Thu, Jul 18, 2013 at 2:03 PM, Justin Novosad wrote: > On Thu, Jul 18, 2013 at 12:50 PM, Ian Hickson wrote: > > > On Wed, 9 Jan 2013, Ashley Gullen wrote: > > > > > > Some developers are starting to design large scale games using our > HTML5 > > > game engine, and we're finding we're running i

Re: [whatwg] Proposal: Media element - add attributes for discovery of playback rate support

2013-07-18 Thread Eric Carlson
On Jul 18, 2013, at 1:13 PM, Brendan Long wrote: > On 07/18/2013 06:54 AM, John Mellor wrote: >> If the user is speeding up playback to improve their productivity (spend >> less time watching e.g. a lecture), then they may well be willing to wait >> until enough of the video is buffered, since t

Re: [whatwg] Canvas 2D memory management

2013-07-18 Thread Justin Novosad
On Thu, Jul 18, 2013 at 12:50 PM, Ian Hickson wrote: > On Wed, 9 Jan 2013, Ashley Gullen wrote: > > > > Some developers are starting to design large scale games using our HTML5 > > game engine, and we're finding we're running in to memory management > > issues. Consider a device with 50mb of tex

Re: [whatwg] Proposal: Media element - add attributes for discovery of playback rate support

2013-07-18 Thread Brendan Long
On 07/18/2013 06:54 AM, John Mellor wrote: > If the user is speeding up playback to improve their productivity (spend > less time watching e.g. a lecture), then they may well be willing to wait > until enough of the video is buffered, since they can do something else in > the meantime. > > For exam

Re: [whatwg] Challenging canvas.supportsContext

2013-07-18 Thread Benoit Jacob
The thread seems to have settled down. I still believe that supportsContext, in its current form, should be removed from the HTML spec, because as currently spec'd it could be implemented as just returning whether WebGLRenderingContext is defined. I also still believe that it will be exceedingly h

[whatwg] Notifications: eventTime

2013-07-18 Thread Anne van Kesteren
Chrome supports Notifications.eventTime: http://developer.chrome.com/extensions/notifications.html#type-NotificationOptions I suggest we add that to the specification. By default it's not there, but if specified it signifies the notification is for an event at a specific time, such as a calender en

Re: [whatwg] Adding features needed for WebGL to ImageBitmap

2013-07-18 Thread Justin Novosad
To help us iterate further, I've attempted to capture the essence of this thread on the whatwg wiki, using the problem solving template. I tried to capture the main ideas that we seem to agree on so far and I started to think about how to handle special cases. http://wiki.whatwg.org/wiki/ImageBitm

Re: [whatwg] [Canvas] Behavior on non-invertable CTM

2013-07-18 Thread Ian Hickson
On Tue, 29 Jan 2013, Dirk Schulze wrote: > > The spec doesn't have any wording about the behavior on non-invertible > CTMs on Canvas contexts. Is it still possible to add segments to the > current path once a CTM is not invertible anymore? Does the path get > rejected completely then? Implement

Re: [whatwg] remove resetClip from the Canvas 2D spec

2013-07-18 Thread Ian Hickson
On Tue, 29 Jan 2013, Rik Cabanier wrote: > > we were looking at how resetClip could be implemented in WebKit. Looking > over the Core Graphics implementation, this feature can't be implemented > without significant overhead. I also found an email from 2007 where > Maciej states the same concern

Re: [whatwg] Adding features needed for WebGL to ImageBitmap

2013-07-18 Thread Justin Novosad
On Thu, Jul 18, 2013 at 5:45 AM, Mark Callow wrote: > On 2013/07/18 16:34, K. Gadd wrote: > > > > I understand the rationale behind gregg's suggestion for flipY, but > > ultimately don't know if that one makes any sense in a HTML5 context. It > > basically only exists because of the annoying disag

Re: [whatwg] [canvas] coordinate space definition bogus?

2013-07-18 Thread Ian Hickson
On Tue, 29 Jan 2013, Dirk Schulze wrote: > > I think the definition of "coordinate space" is misleading in the > specification. > ># The canvas element has two attributes to control the size of the ># coordinate space: width and height. > > This implies that the coordinate space is limited by

Re: [whatwg] Canvas 2D memory management

2013-07-18 Thread Ian Hickson
On Wed, 9 Jan 2013, Ashley Gullen wrote: > > Some developers are starting to design large scale games using our HTML5 > game engine, and we're finding we're running in to memory management > issues. Consider a device with 50mb of texture memory available. A > game might contain 100mb of textur

Re: [whatwg] Fwd: Why can't ImageBitmap objects have width and height attributes? (and other e-mails)

2013-07-18 Thread Justin Novosad
On Thu, Jul 18, 2013 at 3:18 AM, K. Gadd wrote: > > > > > > > I thought any decoding isn't supposed to happen until drawImage, so I > > > don't really understand why this operation involves a callback and a > > > delay. Making ImageBitmap creation async means that you *cannot* use > > > this as a

Re: [whatwg] URL resolution of fragment urls in html5 webapps

2013-07-18 Thread Igor Minar
On Thu, Jul 18, 2013 at 2:13 AM, Jonas Sicking wrote: > On Wed, Jul 10, 2013 at 10:24 AM, Alex Russell > wrote: > > hey Igor, > > > > Was just discussing this with Rafael, and it seems like the core issue > > you're flagging is that if a document has a element, all #anchor > > navigations (whic

Re: [whatwg] Proposal: Media element - add attributes for discovery of playback rate support

2013-07-18 Thread John Mellor
If the user is speeding up playback to improve their productivity (spend less time watching e.g. a lecture), then they may well be willing to wait until enough of the video is buffered, since they can do something else in the meantime. For example by spending 30m buffering the first half of a 1 ho

Re: [whatwg] Adding features needed for WebGL to ImageBitmap

2013-07-18 Thread Mark Callow
On 2013/07/18 16:34, K. Gadd wrote: > > I understand the rationale behind gregg's suggestion for flipY, but > ultimately don't know if that one makes any sense in a HTML5 context. It > basically only exists because of the annoying disagreement between APIs > like OpenGL and other APIs like HTML5 Ca

Re: [whatwg] URL resolution of fragment urls in html5 webapps

2013-07-18 Thread Jonas Sicking
On Wed, Jul 10, 2013 at 10:24 AM, Alex Russell wrote: > hey Igor, > > Was just discussing this with Rafael, and it seems like the core issue > you're flagging is that if a document has a element, all #anchor > navigations (which would otherwise be document relative) are now full-page > navigation

Re: [whatwg] URL resolution of fragment urls in html5 webapps

2013-07-18 Thread Igor Minar
Holly cow! IE8 and 9 (but not 10) actually resolve the in-document urls just as I want even with base[href] set. Could that be used as an argument for clarifying the spec on url resolution and making the in-document navigation with base set possible? btw Alex, I looked at the Navigation Controlle

Re: [whatwg] Adding features needed for WebGL to ImageBitmap

2013-07-18 Thread K. Gadd
To respond on the topic of WebGL/ImageBitmap integration - and in particular some of the features requested earlier in the thread. Apologies if I missed a post where this stuff was already addressed directly; I couldn't follow this thread easily because of how much context was stripped out of repli

[whatwg] Fwd: Why can't ImageBitmap objects have width and height attributes? (and other e-mails)

2013-07-18 Thread K. Gadd
Re-sending this because the listserv silently discarded it (You guys should fix it to actually send the notice...) -- Forwarded message -- From: K. Gadd Date: Wed, Jul 17, 2013 at 6:46 PM Subject: Re: [whatwg] Why can't ImageBitmap objects have width and height attributes? (and ot