[whatwg] Responsive image maps

2015-03-18 Thread Andrea Rendine
Hi everybody. I know that my idea can be seen as weird but I prefer to try and receive negative answers, than remaining with nothing. Today embedding images in a page is more complex than before and it allows responsive pictures, too. But there's a feature associated with images and, though still

Re: [whatwg] Responsive image maps

2015-03-18 Thread Andrea Rendine
That's exactly what I had in mind. I worked for a similar solution (now sadly aborted). It implemented a world map with selectable countries instead of free text fields / dropdown list. I had to use Flash because image maps cannot be resized. I like the idea of using both width and height for

Re: [whatwg] Responsive image maps

2015-03-18 Thread Martin Janecke
Am .03.2015, 12:38 Uhr, schrieb Andrea Rendine master.skywalker...@gmail.com: […] why can't map area coordinates be responsive? I know that percentages simply don't work as UAs either interpret them as pixel, or they aren't interpreted at all. But what about rescaling? I'd like to

Re: [whatwg] HTMLCanvasElement toBlob Promise

2015-03-18 Thread acmesquares .
Admittedly a wrapper function is trivial, mostly for API consistency, and does simply move the callback elsewhere. However that's not unprecedented as Navigator.mediaDevices.getUserMedia() was just a promisification of an existing API. Nor is the alternative since

Re: [whatwg] HTMLCanvasElement toBlob Promise

2015-03-18 Thread Garrett Smith
On 3/17/15, Ashley Gullen ash...@scirra.com wrote: Making toBlob return a promise is definitely in keeping with the rest of the web platform, but it's easy to write a wrapper function to promisify it. IMO toBlob is better than toDataURL since it is async so the image encoding can happen off