[whatwg] HTML6 proposal for single-page apps without Javascript

2015-03-20 Thread Bobby Mozumder
There’s a standard design pattern emerging via all the front-end javascript frameworks where content is loaded dynamically via JSON APIs. This is the single-page app web design pattern. Everyone’s into it because the responsiveness is so much better than loading a full page - 10-50ms with a

Re: [whatwg] HTML6 proposal for single-page apps without Javascript

2015-03-20 Thread Michael A. Peters
On 03/20/2015 02:10 AM, Bobby Mozumder wrote: There’s a standard design pattern emerging via all the front-end javascript frameworks where content is loaded dynamically via JSON APIs. This is the single-page app web design pattern. Everyone’s into it because the responsiveness is so much

Re: [whatwg] HTML6 proposal for single-page apps without Javascript

2015-03-20 Thread Jens Oliver Meiert
There’s a standard design pattern emerging via all the front-end javascript frameworks where content is loaded dynamically via JSON APIs. So it’s already possible, right? :) Even if HTML would accommodate, how would we know we’re not just moving complexity from one end to the other? Would we

Re: [whatwg] Canvas image to blob/dataurl within Worker

2015-03-20 Thread Rik Cabanier
On Fri, Mar 20, 2015 at 3:15 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Sat, Mar 21, 2015 at 1:13 AM, Jake Archibald jaffathec...@gmail.com wrote: Receiving a push message results in a 'push' event within the ServiceWorker. The likely action at this point is to show a

Re: [whatwg] Canvas image to blob/dataurl within Worker

2015-03-20 Thread Boris Zbarsky
On 3/20/15 8:13 AM, Jake Archibald wrote: Almost all the pieces already exist, except a way to get the image data of a CanvasRenderingContext2D into a format that can be read from a url. There's CanvasRenderingContext2D.toDataURL; I assume the problem is that it's not async, yes? But if

Re: [whatwg] Canvas image to blob/dataurl within Worker

2015-03-20 Thread Boris Zbarsky
On 3/20/15 8:53 AM, Kenji Baheux wrote: I believe that toDataURL is on Canvas not CanvasRenderingContext2D. https://html.spec.whatwg.org/multipage/scripting.html#canvasrenderingcontext2d The CanvasRenderingContext2D.canvas being null, there is no way to use it. Oh. Yeah, that's silly; we

Re: [whatwg] Canvas image to blob/dataurl within Worker

2015-03-20 Thread Sandro Paganotti
+1 I've tried to workaround the limitation with some pureJS libraries (such as http://todataurl-png-js.googlecode.com/svn/trunk/todataurl.js) but having a native implementation would be so much better.

Re: [whatwg] Canvas image to blob/dataurl within Worker

2015-03-20 Thread Kenji Baheux
I believe that toDataURL is on Canvas not CanvasRenderingContext2D. https://html.spec.whatwg.org/multipage/scripting.html#canvasrenderingcontext2d The CanvasRenderingContext2D.canvas being null, there is no way to use it.

Re: [whatwg] Canvas image to blob/dataurl within Worker

2015-03-20 Thread Rik Cabanier
On Fri, Mar 20, 2015 at 9:42 PM, Robert O'Callahan rob...@ocallahan.org wrote: On Sat, Mar 21, 2015 at 3:38 PM, Rik Cabanier caban...@gmail.com wrote: Do you know how many site use toBlob in Firefox? A quick search on github shows a very high number of pages [1] so it might be too late to

Re: [whatwg] Canvas image to blob/dataurl within Worker

2015-03-20 Thread Robert O'Callahan
On Sat, Mar 21, 2015 at 3:38 PM, Rik Cabanier caban...@gmail.com wrote: Do you know how many site use toBlob in Firefox? A quick search on github shows a very high number of pages [1] so it might be too late to change. Maybe you can keep the callback and return a promise? None of them use

[whatwg] Canvas image to blob/dataurl within Worker

2015-03-20 Thread Jake Archibald
Usecase: Receiving a push message results in a 'push' event within the ServiceWorker. The likely action at this point is to show a notification. It should be possible to generate an image to use as an icon for this notification (

Re: [whatwg] HTML6 proposal for single-page apps without Javascript

2015-03-20 Thread Brian Kardell
Going to liberally snip the bits I'm responding to... On Fri, Mar 20, 2015 at 5:10 AM, Bobby Mozumder mozum...@futureclaw.com wrote: There’s a standard design pattern emerging via all the front-end javascript frameworks where content is loaded dynamically via JSON APIs. This is the

Re: [whatwg] Responsive image maps

2015-03-20 Thread Andrea Rendine
SVG can be resized. Everything inside it cannot, as far as it is not defined by relative units. And percentage is not limited to ingegers, of course, but it requires a value conversion. And I'm not sure it works with polygons. 2015-03-20 21:15 GMT+01:00 Tab Atkins Jr. jackalm...@gmail.com: On

Re: [whatwg] Responsive image maps

2015-03-20 Thread Tab Atkins Jr.
On Fri, Mar 20, 2015 at 1:30 PM, Andrea Rendine master.skywalker...@gmail.com wrote: SVG can be resized. Everything inside it cannot, as far as it is not defined by relative units. If you use percentage coordinates, or use px coordinates plus a viewBox attribute on the svg, the stuff inside

Re: [whatwg] HTML6 proposal for single-page apps without Javascript

2015-03-20 Thread delfin
On 2015-03-20 21:13, Bobby Mozumder wrote: On Mar 20, 2015, at 7:12 AM, Jens Oliver Meiert j...@meiert.com wrote: So it's already possible, right? :) Maybe, with a lot of expensive Javascript coding. Of course, anything is possible with a lot of expensive coding. The goal should be to

Re: [whatwg] Responsive image maps

2015-03-20 Thread Tab Atkins Jr.
On Fri, Mar 20, 2015 at 12:22 PM, Martin Janecke whatwg@prlbr.com wrote: However, since image maps have been an integral part of HTML since version 3.2 and not been deprecated in favor of a better alternative yet, it might still be a straightforward solution to enhance them. Responsive

Re: [whatwg] MetaExtension and Dublin Core revision

2015-03-20 Thread Andrea Rendine
Hi again. I hope anyone takes the time to review my request about MetaExtension and Dublin Core revision. The metadata properties list as it is now on the page is out of its proper specification. Thank you for the help. Andrea Rendine

Re: [whatwg] Responsive image maps

2015-03-20 Thread Tab Atkins Jr.
On Fri, Mar 20, 2015 at 1:00 PM, Andrea Rendine master.skywalker...@gmail.com wrote: About SVG, I made a couple of tests and they are far from being comprehensive, but this is the fact. SVG image maps need to define 2 elements for each area, i.e. the element itself and its associated

Re: [whatwg] Responsive image maps

2015-03-20 Thread Martin Janecke
Am .03.2015, 13:10 Uhr, schrieb Simon Pieters sim...@opera.com: Please leave out syntax proposals for now. What I think is needed first to drive this forward is: * Use cases. Why do you need this? In general it's needed to allow geometric areas on an image to be associated with

Re: [whatwg] Responsive image maps

2015-03-20 Thread Andrea Rendine
Why are alternatives like CSS-positioned a links or SVG not better? The issue with CSS is easy. All that can be achieved through it is rectangles/squares (and their transformations), circles and some approximation of ellipses (with border-radius). The third feature allowed by image maps,

Re: [whatwg] HTML6 proposal for single-page apps without Javascript

2015-03-20 Thread Bobby Mozumder
The HTML body thus becomes a tempting language, with all the content residing in the fixtures that can be dynamically reloaded without Javascript. Sorry I just noticed an autocorrect typo. The above statement should be: The HTML body thus becomes a templating language, with all the content

Re: [whatwg] Canvas image to blob/dataurl within Worker

2015-03-20 Thread Robert O'Callahan
On Sat, Mar 21, 2015 at 1:13 AM, Jake Archibald jaffathec...@gmail.com wrote: Receiving a push message results in a 'push' event within the ServiceWorker. The likely action at this point is to show a notification. It should be possible to generate an image to use as an icon for this